[PATCH] libata: Fix the HSM error_mask mapping (was: Re: libata-tj and SMART)
authorAlbert Lee <albertcc@tw.ibm.com>
Fri, 19 May 2006 03:43:04 +0000 (11:43 +0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 20 May 2006 04:37:01 +0000 (00:37 -0400)
commit3655d1d323386e001c786af10f0a3f39f438f03b
tree16fd30cc6d255e5aaad4a5372cb8ec140c5b9736
parent3d71b3b0b634b1a5ba8632fd9ec998e0e4aedfdb
[PATCH] libata: Fix the HSM error_mask mapping (was: Re: libata-tj and SMART)

Fix the HSM error_mask mapping.

Changes:
- Better mapping in ac_err_mask()
- In HSM_ST_FIRST ans HSM_ST state, check ATA_ERR|ATA_DF and map it to AC_ERR_DEV instead of AC_ERR_HSM.
- In HSM_ST_FIRST and HSM_ST state, map DRQ=1 ERR=1 to AC_ERR_HSM.
- For PIO data in and DRQ=1 ERR=1, add check after the junk data block is read.

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