[PATCH RFC 07/31] mmc: sdhci: push card_tasklet into threaded irq handler

Viresh Kumar viresh.kumar at linaro.org
Wed Feb 19 05:09:35 EST 2014


On 19 February 2014 15:22, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> Are you aware that power control to the card is part of the MMC/SD/SDIO
> spec - and part of the protocol talking to the card?  Hence why the
> mmc layer has support for its control built-in.

Yeah, almost everything is part of the protocol and hence handled by core
sdhci.c layer.. We were handling some board specific issues here, that's it.

> If you don't want to use a regulator, then the right way to do this is to
> use the set_ios callback and check the power field - anything which is not
> MMC_POWER_OFF should result in power to the card being turned on.

I didn't get that completely here.. sorry completely out of touch on
this driver.
The power GPIO here is controlling the power to card socket. Once the card
is inserted, we need to enable power to the socket so that controller can
read back information from card.

And this set_ios callback is not available to drivers above sdhci.c, i.e. glues
like sdhci-pltfm or spear.. so, how we can we get that back in sdhci-spear.c?

Again, I can't test any modifications to this code and we need help from
Pratyush/Mohit on this..



More information about the linux-arm-kernel mailing list