Re: [PATCH] mmc: sdio: reset card during power_restore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ohad,

On 17 June 2011 15:31, Ohad Ben-Cohen <ohad@xxxxxxxxxx> wrote:
>> Yes, a regulator could work. But, aren't regulators linked to the
>> platform rather than to the card? I would imagine that this quirk
>> needs to be applied to all users of the card, therefore a card quirk
>> could be more appropriate? Also, if you think the sdio_reset() option
>> is preferable to the sleep, can that be done from a regulator?
>
> I'd really prefer to understand what's wrong first.
>
> If we have a rigid hardware requirement that demands waiting before
> powering it up again, then we better obey it. But I somehow doubt that
> a 250ms delay is required. That's way too much...

So, as I found here: http://article.gmane.org/gmane.linux.kernel.mmc/8605
This is an OLPC-specific issue due to lack of power clamping on the
motherboard's power supply, which might not be shared by other sd8686
users, and a long delay is expected.

I have been testing further and I have seen a couple of times that
msleep(300) is not enough, or at least the card failed to do the cmd5
reset in those cases. The sdio_reset() method seems to be 100%
reliable however, I haven't seen a single failure with that yet.

Where do we go from here? Any suggested implementation approach?

Thanks,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux