|
Re: PXA27x SD/MMC card CRC errors - only sometimes: msg#00026handhelds.linux.kernel
Richard Purdie wrote: On Sat, 2005-12-17 at 13:12 -0700, Matthew Mastracci wrote: It turns out that this 2GB SD card has a block_size of 10 bits (1024) and some part of the block read function is incorrectly setting one of the registers. When I hardcoded the device's blocksize to 9 bits, everything started working as expected (though this is obviously not the correct fix): static void mmc_decode_csd(struct mmc_card *card) ... + csd->capacity <<= (csd->read_blkbits - 9); + csd->read_blkbits = 9; I think the problem is basically that mmc_block seems tailored towards 512-byte sector cards, even though it seems to use csd->read_blkbits in a number of places. Should the mmc layer just always use a 512 byte sector? This would certainly solve this problem. Matt. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: PXA27x SD/MMC card CRC errors - only sometimes: 00026, Matthew Mastracci |
|---|---|
| Next by Date: | DiskOnChip in h6300 device: 00026, Husam Senussi |
| Previous by Thread: | Re: PXA27x SD/MMC card CRC errors - only sometimesi: 00026, Matthew Mastracci |
| Next by Thread: | DiskOnChip in h6300 device: 00026, Husam Senussi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |