[Letux-kernel] [RFC v3 5/6] mmc: core: transplant ti, wl1251 quirks from to be retired omap_hsmmc

Linus Walleij linus.walleij at linaro.org
Tue Nov 9 12:19:28 CET 2021

On Wed, Nov 3, 2021 at 2:01 PM H. Nikolaus Schaller <hns at goldelico.com> wrote:

> The TiWi WL1251 WiFi chip needs special setup of the sdio
> interface before it can be probed.
> So far, this is done in omap_hsmmc_init_card() in omap_hsmmc.c
> which makes it useable only if connected to omap devices
> which use the omap_hsmmc. The OpenPandora is the most promient
> example.
> There are plans to switch to a newer sdhci-omap driver and
> retire omap_hsmmc. Hence this quirk must be reworked or moved
> somewhere else. Ideally to some location that is not dependent
> on the specific SoC mmc host driver.
> This is achieved by the new mmc_fixup_device() option introduced
> by ("mmc: allow to match the device tree to apply quirks") to match
> through device tree compatible string.
> This quirk will be called early right after where host->ops->init_card()
> and thus omap_hsmmc_init_card() was previously called.
> Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Linus Walleij

More information about the Letux-kernel mailing list