Re: [BUG] CMD52 sent as first command not CMD0

Chris Ball
2011-02-06T01:15:15Z

On Sat, Feb 05, 2011 at 04:52:12PM -0800, Philip Rakity wrote:
> nothing negative but reset is meant to reinit the card. This is the power up sequence for the 1st time a card is detected.
> There is no reason to do this if no card has yet enumerated. If a sdio card was there I completely agree with the mod since we need to reset
> the card.
>
> CMD0 should be the 1st command on an initial power up sequence. Does my code suggestion work for you ?

Okay -- yes, looks fine. Let's add a comment beforehand; something like:

/* If reinitalizing, we must send CMD52 before CMD0 for SDIO. */

--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child