[PATCH] libata: don't read TF directly from sense generation functions
authorTejun Heo <htejun@gmail.com>
Sun, 2 Apr 2006 09:51:53 +0000 (18:51 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 2 Apr 2006 14:09:20 +0000 (10:09 -0400)
commit74e6c8c394ca2126a60e97bc1142ec2d91761e9a
tree4f9422284300b495590501d9fb919c062d60069f
parent058e55e120ca59d37392f9aa753da2d9ead24505
[PATCH] libata: don't read TF directly from sense generation functions

TF register might not be directly accessible depending on errors.
e.g. TF of failed NCQ command is in log page 10h.  Make reading TF
responsibility of error handlers.  For the current EH, simply push TF
reading into qc completion functions as they are practically part of
EH.  New EH will fill qc->tf with status registers before complting
qcs.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-scsi.c