ata_to_sense_error
Name
ata_to_sense_error -- convert ATA error to SCSI error
Synopsis
void ata_to_sense_error
(struct ata_queued_cmd * qc, u8 drv_stat);
Arguments
qc
Command that we are erroring out
drv_stat
value contained in ATA status register
Description
Converts an ATA error into a SCSI error. While we are at it
we decode and dump the ATA error for the user so that they
have some idea what really happened at the non make-believe
layer.
LOCKING
spin_lock_irqsave(host_set lock)