提交 f6e984e6 编写于 作者: S Sergei Shtylyov 提交者: Tejun Heo

ipr: qc_fill_rtf() method should not store alternate status register

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: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: NBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 1b20f6a9
...@@ -6662,7 +6662,6 @@ static bool ipr_qc_fill_rtf(struct ata_queued_cmd *qc) ...@@ -6662,7 +6662,6 @@ static bool ipr_qc_fill_rtf(struct ata_queued_cmd *qc)
tf->hob_lbal = g->hob_lbal; tf->hob_lbal = g->hob_lbal;
tf->hob_lbam = g->hob_lbam; tf->hob_lbam = g->hob_lbam;
tf->hob_lbah = g->hob_lbah; tf->hob_lbah = g->hob_lbah;
tf->ctl = g->alt_status;
return true; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册