On Fri, Aug 28, 2015 at 02:13:44AM -0400, kremlin wrote: > sdmmc gives up configuring the card after 100 failed CMD1 commands. My > patch starts asserting the MMC_OCR_SECTOR_MODE bit after 50 failed > attempts. This fixes the bug on my BBB with Micron chip:
Nice work! I wonder why you chose to be so conservative (or arbitrary) about the "after 50 failed attempts" condition. :) Since sector mode is supported by the host software, shouldn't we always set the MMC_OCR_SECTOR_MODE bit and check the returned OCR value to see if the card also supports sector mode addressing? Related thread: http://marc.info/?l=linux-mmc&m=129419687808618 Cheers, Uwe
