Subject: CVS commit: src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: source-changes
Date: 01/23/2007 20:10:06
Module Name:	src
Committed By:	reinoud
Date:		Tue Jan 23 20:10:06 UTC 2007

Modified Files:
	src/sys/dev/scsipi: atapi_wdc.c

Log Message:
Fix for atapi devices that have 32 bit databusses selected. The devices
won't error out but will return garbage data. Implemented by generalising
the odd-check for PIO selection to check for 4 byte alignment in offset and
size.

Note that this check could be relaxed by checking if the ATAPI/ide bus
width is 16 for the device but its unknown to me if that information is
available here.


To generate a diff of this commit:
cvs rdiff -r1.103 -r1.104 src/sys/dev/scsipi/atapi_wdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.