[PATCH] libata-dev: handle DRQ=1 ERR=1 (revised)
authorAlbert Lee <albertcc@tw.ibm.com>
Sat, 1 Apr 2006 09:38:43 +0000 (17:38 +0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Apr 2006 19:29:21 +0000 (14:29 -0500)
commiteee6c32f5f114f9b9f2d94862f0dc0d3ff523864
tree76cae31872925fd2e66aeab833fed6b293f9af2d
parent6e07e16404deafadf45895a7d2aeb5feba53b479
[PATCH] libata-dev: handle DRQ=1 ERR=1 (revised)

Handle DRQ=1 ERR=1 situation. Revised according to what IDE try_to_flush_leftover_data() does.

Changes:
 - For ATA PIO writes and ATAPI devices, just stop the HSM and let EH handle it.
 - For ATA PIO reads, read only one block of junk data and then let EH handle it.

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c