]> Pileus Git - ~andy/linux/commitdiff
ipr: qc_fill_rtf() method should not store alternate status register
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 21 May 2013 19:24:22 +0000 (23:24 +0400)
committerTejun Heo <tj@kernel.org>
Sun, 2 Jun 2013 08:14:40 +0000 (01:14 -0700)
The 'ctl' field of  the 'struct ata_taskfile' is not really dual purpose, i.e.
it is not intended  for storing the alternate status register (which is mapped
at the same address in the legacy IDE controllers) in the qc_fill_rtf() method.
No other 'libata' driver except 'drivers/scsi/ipr.c' stores the alternate status
register's value in the 'ctl' field of 'qc->result_tf', hence this driver should
not do this as well...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/scsi/ipr.c

index 82a3c1ec8706600473c4daedd33b248d2c94518f..e6b05ec4194b1e228243b05205d64ecf6ebaa0e3 100644 (file)
@@ -6662,7 +6662,6 @@ static bool ipr_qc_fill_rtf(struct ata_queued_cmd *qc)
        tf->hob_lbal = g->hob_lbal;
        tf->hob_lbam = g->hob_lbam;
        tf->hob_lbah = g->hob_lbah;
-       tf->ctl = g->alt_status;
 
        return true;
 }