Kingston 4GB compact flash erroneously thought to have 'hdf' available

David Pat Shui Fong vkelim at bigpond.com
Fri Jul 21 23:43:21 EDT 2006


Dear PCMCIA list,

Finally found the solution to the problem I reported below...

Fixing the problem involves changing drivers/ide/ide-probe.c, by nullifying a 'fix'
for old Seagate drives.

I changed (in kernel 2.6.18-rc2, but the same code exists in 2.6.17 and I think 2.6.16)...

    if ((a ^ s) & ~INDEX_STAT) {
     printk(KERN_INFO "%s: probing with STATUS(0x%02x) instead of "
      "ALTSTATUS(0x%02x)\n", drive->name, s, a);
      /* ancient Seagate drives, broken interfaces */
     hd_status = IDE_STATUS_REG;
    } else {
     /* use non-intrusive polling */
     hd_status = IDE_ALTSTATUS_REG;
    } 

to...

    if ((a ^ s) & ~INDEX_STAT) {
     printk(KERN_INFO "%s: was going to probe with STATUS(0x%02x) instead of "
      "ALTSTATUS(0x%02x) - use non-intrusive polling instead\n", drive->name, s, a);
      /* was to handle ancient Seagate drives, broken interfaces. */
      /* seems to break Muramasa and Kingston 4GB CF, so next line changed */
     hd_status = IDE_ALTSTATUS_REG; /* was IDE_STATUS_REG */
    } else {
     /* use non-intrusive polling */
     hd_status = IDE_ALTSTATUS_REG;
    }

Now, to whom do I report to get this problem fixed?

Cheerio, David.

> ...(inserting Kingston 4GB Ultimate compact flash into Muramasa with Ricoh RL5c476)
> /var/log/messages log from 2.6.18-rc2 shows...
> Jul 16 18:58:19 muramasa kernel: pccard: PCMCIA card inserted into slot 0
> Jul 16 18:58:19 muramasa kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
> Jul 16 18:58:19 muramasa kernel: pcmcia: registering new device  pcmcia0.0 
> Jul 16 18:58:19 muramasa kernel: Probing IDE interface ide2... 
> Jul 16 18:58:20 muramasa kernel: hde: CF500, CFA DISK drive
> Jul 16 18:58:20 muramasa kernel: hdf: probing with STATUS(0x50) instead of ALTSTATUS(0x0a)
> Jul 16 18:58:20 muramasa kernel: hdf:                       
>                 , ATA DISK drive Jul 16 18:58:20 muramasa kernel: ide2 at 0x100-0x107,0x10e on irq 4
> Jul 16 18:58:20 muramasa kernel: hde: max request size: 128KiB
> Jul 16 18:58:20 muramasa kernel: hde: 8060928 sectors (4127 MB) w/1KiB Cache, CHS=15744/16/32
> Jul 16 18:58:20 muramasa kernel:  hde: hde1 
> Jul 16 18:58:20 muramasa kernel: hdf: max request size: 512KiB
> Jul 16 18:58:50 muramasa kernel: hdf: lost interrupt

-- 
David Fong : Ivanhoe, 3079, Victoria, Australia.
http://www.users.bigpond.com/vkelim --- ICQ and PGP available
http://vkelim.smugmug.com (photo-gallery) --- SuSE 10.1



More information about the linux-pcmcia mailing list