android_kernel_xiaomi_sm8350/drivers/scsi/libsas
Tejun Heo 22183bf569 libata: add qc_fill_rtf port operation
On command completion, ata_qc_complete() directly called ops->tf_read
to fill qc->result_tf.  This patch adds ops->qc_fill_rtf to replace
hardcoded ops->tf_read usage.

ata_sff_qc_fill_rtf() which uses ops->tf_read to fill result_tf is
implemented and set in ata_base_port_ops and other ops tables which
don't inherit from ata_base_port_ops, so this patch doesn't introduce
any behavior change.

ops->qc_fill_rtf() is similar to ops->sff_tf_read() but can only be
called when a command finishes.  As some non-SFF controllers don't
have TF registers defined unless they're associated with in-flight
commands, this limited operation makes life easier for those drivers
and help lifting SFF assumptions from libata core layer.

Signed-off-by: Tejun Heo <htejun@gmail.com>
2008-04-17 15:44:23 -04:00
..
Kconfig
Makefile
sas_ata.c libata: add qc_fill_rtf port operation 2008-04-17 15:44:23 -04:00
sas_discover.c [SCSI] libsas: Warn if ATA device detected but CONFIG_SCSI_SAS_ATA not set 2008-03-27 15:12:16 -07:00
sas_dump.c
sas_dump.h
sas_event.c
sas_expander.c
sas_host_smp.c
sas_init.c
sas_internal.h
sas_phy.c
sas_port.c [SCSI] libsas: use the supplied address for SATA devices rather than changing it 2008-02-23 23:53:04 -06:00
sas_scsi_host.c [SCSI] libsas: misc fixes to the eh path 2008-02-23 23:53:20 -06:00
sas_task.c