]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] libata: sync result_tf.flags w/ command tf.flags
authorTejun Heo <htejun@gmail.com>
Tue, 14 Nov 2006 13:37:35 +0000 (22:37 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 03:45:59 +0000 (22:45 -0500)
commit33bd7a3b30f8c22d734a073f671213c6d34f215b
treeff204f613472d673af4614e0bcef6689ea69c15a
parent44a927cbe4656cc69b276c74386c4021795f7fbb
[PATCH] libata: sync result_tf.flags w/ command tf.flags

libata didn't initialize result_tf.flags which indicates transfer type
(RW/FUA) and address type (CHS/LBA/LBA48).  ata_gen_fixed_sense()
assumed result_tf.flags equals command tf.flags and failed to report
the first failed block to SCSI layer because zero tf flags indicates
CHS and bad block reporting for CHS is not implemented.

Implement fill_result_tf() which sets result_tf.flags to command
tf.flags and use it to fill result_tf.

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