Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Relax condition on 'sn' for atapi probe, it can b...



details:   https://anonhg.NetBSD.org/src/rev/a1059107879d
branches:  trunk
changeset: 487699:a1059107879d
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Jun 11 17:09:34 2000 +0000

description:
Relax condition on 'sn' for atapi probe, it can be different from 0x1 with
some controllers/devices. Fixes a problem reported by Markus Illenseer.

diffstat:

 sys/dev/ic/wdc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 79d589405542 -r a1059107879d sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Sun Jun 11 16:32:42 2000 +0000
+++ b/sys/dev/ic/wdc.c  Sun Jun 11 17:09:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.89 2000/05/12 15:00:33 bouyer Exp $ */
+/*     $NetBSD: wdc.c,v 1.90 2000/06/11 17:09:34 bouyer Exp $ */
 
 
 /*
@@ -255,10 +255,10 @@
                    chp->wdc ? chp->wdc->sc_dev.dv_xname : "wdcprobe",
                    chp->channel, drive, sc, sn, cl, ch), DEBUG_PROBE);
                /*
-                * sc is supposted to be 0x1 for ATAPI but in some cases we
-                * get wrong values here, so ignore it.
+                * sc & sn are supposted to be 0x1 for ATAPI but in some cases
+                * we get wrong values here, so ignore it.
                 */
-               if (sn == 0x01 && cl == 0x14 && ch == 0xeb) {
+               if (cl == 0x14 && ch == 0xeb) {
                        chp->ch_drive[drive].drive_flags |= DRIVE_ATAPI;
                } else {
                        chp->ch_drive[drive].drive_flags |= DRIVE_ATA;



Home | Main Index | Thread Index | Old Index