Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 10/06/2003 21:51:31
Module Name: src
Committed By: bouyer
Date: Mon Oct 6 21:51:31 UTC 2003
Modified Files:
src/sys/dev/ic: wdc.c
Log Message:
Revert to polling for ata_get_params() in wdc_channel_attach().
When probing a nonexistent slave, we may timeout waiting for an interrupt.
In __wdccommand_start(), for polled data in commands, abort quickly if
status still read 0 after 400ns (for a nonexistant slave, the
command will either be aborted, or the status register will report 0; for
a real device we should have BSY, DRQ or ERR).
Thanks to Alexander Yurchenko for reporting the problem and testing the
fix.
To generate a diff of this commit:
cvs rdiff -r1.134 -r1.135 src/sys/dev/ic/wdc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.