Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] 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: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

Sergei Shtylyov and committed by
James Bottomley
32d3d793 9246cc2b

-1
-1
drivers/scsi/ipr.c
··· 6662 6662 tf->hob_lbal = g->hob_lbal; 6663 6663 tf->hob_lbam = g->hob_lbam; 6664 6664 tf->hob_lbah = g->hob_lbah; 6665 - tf->ctl = g->alt_status; 6666 6665 6667 6666 return true; 6668 6667 }