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

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

 



The CMD52 was sent to a eMMC card.  Not SDIO.  Figure 6.2 in SDIO spec 2.0 -- clearly shows that the card needs to exist before cmd52 (reset) is legal.

Probably need to extend the proposed change to check card type to ensure only done for sdio.


On Feb 5, 2011, at 4:52 PM, 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 ?
> 
> On Feb 5, 2011, at 4:38 PM, Chris Ball wrote:
> 
>> Hi Philip,
>> 
>> On Fri, Feb 04, 2011 at 02:53:59PM -0800, Philip Rakity wrote:
>>> using mmc-next -- NO changes -- last checkin was from linux Jan 26
>> [..]
>>> [    2.034998] mmc0: starting CMD52 arg 00000c00 flags 00000195
>>> [    2.052704] Waiting 15sec before mounting root device...
>>> [    2.068948] sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00018000
>>> [    2.087707] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>> [    2.109069] mmc0: starting CMD52 arg 80000c08 flags 00000195
>>> [    2.126291] sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00018000
>>> [    2.145002] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>> [    2.166321] mmc0: clock 400000Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0 timing 0
>>> [    2.190178] mmc0: starting CMD0 arg 00000000 flags 000000c0
>>> [    2.206971] sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00000001
>>> [    2.225689] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
>> 
>> This looks to be intentional, and dates back to:
>> 
>> commit 516a82422209e078345d0ca54b16793d7bfd4782
>> Author: Albert Herranz <albert_herranz@xxxxxxxx>
>> Date:   Wed Mar 10 15:20:37 2010 -0800
>> 
>>   sdio: recognize io card without powercycle
>> 
>>   SDIO Simplified Specification V2.00 states that it is strongly recommended
>>   that the host executes either a power reset or issues a CMD52 (I/O Reset)
>>   to re-initialize an I/O only card or the I/O portion of a combo card.
>>   Additionally, the CMD52 must be issued first because it cannot be issued
>>   after a CMD0.
>> 
>>   With this patch the Nintendo Wii SDIO-based WLAN card is detected after a
>>   system reset, without requiring a complete system powercycle.
>> 
>> Are you seeing any negative effects from running the CMD52 before CMD0?
>> 
>> Thanks,
>> 
>> -- 
>> Chris Ball   <cjb@xxxxxxxxxx>   <http://printf.net/>
>> One Laptop Per Child
> 
> --
> 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

--
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