Subject: CVS commit: [netbsd-2-0] src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 04/29/2004 04:24:41
Module Name: src
Committed By: jmc
Date: Thu Apr 29 04:24:41 UTC 2004
Modified Files:
src/sys/dev/scsipi [netbsd-2-0]: scsipi_base.c
Log Message:
Pullup rev 1.105 (requested by bouyer in ticket #214)
Revert part of 1.102:
Don't decrease/check xs_retries when the device report "Power On, Reset, or
Bus Device Reset" sense condition, just retry the command. The initial bus
reset would cause the first TEST_UNIT_READY to report this condition,
and as xs_retries is set to 0 when XS_CTL_DISCOVERY is set, it would report an
error instead of being retried, causing the disk probe to report "drive
offline" instead of the geometry and capacity. Checking/decreasing
xs_retries on the bus reset reported by the adapter is enouth to avoid the
problem reported by rev 1.102.
To generate a diff of this commit:
cvs rdiff -r1.104 -r1.104.2.1 src/sys/dev/scsipi/scsipi_base.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.