[PATCH] libata: add detailed AC_ERR_* flags
Add detailed AC_ERR_* flags and use them. Long-term goal is to describe all errors with err_mask and tf combination (tf for failed sector information, etc...). After proper error diagnosis is implemented, sense data should also be generated from err_mask instead of directly from hardware tf registers as it is currently. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
@@ -680,7 +680,7 @@ static void ahci_eng_timeout(struct ata_port *ap)
|
||||
* not being called from the SCSI EH.
|
||||
*/
|
||||
qc->scsidone = scsi_finish_command;
|
||||
qc->err_mask |= AC_ERR_OTHER;
|
||||
qc->err_mask |= AC_ERR_TIMEOUT;
|
||||
ata_qc_complete(qc);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user