vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Sun 2007.01.28 at 22:22 -0600, Matthew R. Dempsky wrote: > The SD card reader in my Thinkpad X40 stops responding after I insert > and eject an SD card. I've narrowed the cause to ``Software Reset for > All'' requests timing out after a card has been removed. I'm not sure > why (requests before always work fine, and even occasionally after), > but the patch below allows me to reliably insert and eject multiple SD > cards. > > According to the Simplified SD Host Controller spec, this change > shouldn't affect anything. All of the bits in the Software Reset > register are labeled as ignoring 0-bit writes, and yet somehow it > changes behavior. > > I'm still looking for cleaner solutions, but thought I'd post this in > case anyone's interested. > > Index: sdhc.c > ================================================== ================= > RCS file: /cvs/src/sys/dev/sdmmc/sdhc.c,v > retrieving revision 1.16 > diff -u -r1.16 sdhc.c > --- sdhc.c 28 Jan 2007 03:03:12 -0000 1.16 > +++ sdhc.c 29 Jan 2007 03:59:52 -0000 > @@ -788,6 +788,7 @@ > if (!ISSET(HREAD1(hp, SDHC_SOFTWARE_RESET), mask)) > break; > sdmmc_delay(10000); > + HWRITE1(hp, SDHC_SOFTWARE_RESET, 0); > } > if (timo == 0) { > DPRINTF(1,("%s: timeout reg=%#x\n", HDEVNAME(hp), > this solves the issue with the SD slot in my x40 - i can now insert/remove the card as many times as i want. hw.product=2382HCU hw.version=ThinkPad X40 thanks. |