Current-Users archive

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

Ata & atapi bug



Hi,
I got trouble booting with the last kernel on my old nc8000 laptop : my ATA drive was not seen anymore while cdrom drive was.

after looking in source i found a problem in /cvsroot/src/sys/dev/scsipi/atapi_wdc.c

with regard to this  diff

@@ -321,12 +321,12 @@ wdc_atapi_probe_device(struct atapibus_s
                        ata_probe_caps(drvp);
                else {
                        s = splbio();
-                       drvp->drive_flags &= ~DRIVE_ATAPI;
+                       drvp->drive_type = DRIVET_NONE;
                        splx(s);
                }
        } else {
                s = splbio();
-               drvp->drive_flags &= ~DRIVE_ATAPI;
+               drvp->drive_type = DRIVET_NONE;
                splx(s);
        }
 }

my harddrive is changed from DRIVET_ATA to DRIVET_NONE in the new version.
I add
    if ( drvp->drive_type == DRIVET_ATAPI )
            drvp->drive_type = DRIVET_NONE;
to fix that

Hope it can help.


Home | Main Index | Thread Index | Old Index