Port-zaurus archive

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

Re: 1024bytes/sect microSD support



2009/11/28 KIYOHARA Takashi <kiyohara%kk.iij4u.or.jp@localhost>:
> I was wrong report.  I apologize with the mail before.  I had forgotten
> having changed pxamci for the test.  Your patch was 1961*1024 though my
> microSD was 1985024 sectors.
>
>  my microSD:
>    ld0: 1938 MB, 984 cyl, 32 head, 63 sec, 1024 bytes/sect x 1985024 sectors
>
>  your patch:
>    if ( (1<<csd->read_bl_len)*csd->capacity >= 1961*1024*1024 ) {
>       is_2gb_v1_card = 1;
>    }

As pointed out by Warner Losh, my patch does not solve the issue in
the right way. And the exact lines you are showing are probably the
worst part of it :-)

Cheers,
Paul


Home | Main Index | Thread Index | Old Index