The first 5 patches of this series refactor and cleanup the libata-scsi code handling command emulation. There are no functional changes introduced by these patches. The last patch of the series (patch 6) improves the command emulation by accurately handling the scsi command residual and transferring back to the requester only the relevant data of a command reply. Damien Le Moal (6): ata: libata-scsi: Refactor ata_scsi_simulate() ata: libata-scsi: Refactor ata_scsiop_read_cap() ata: libata-scsi: Refactor ata_scsiop_maint_in() ata: libata-scsi: Document all VPD page inquiry actors ata: libata-scsi: Remove struct ata_scsi_args ata: libata-scsi: Return residual for emulated SCSI commands drivers/ata/libata-scsi.c | 503 +++++++++++++++++++++++--------------- 1 file changed, 305 insertions(+), 198 deletions(-) -- 2.47.0