[PATCH v2 1/3] Add ZBC <-> ZAC xlat support for report, open, close, reset, finish

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add SCSI <-> ATA translation layer for ZBC commands:
  - Open, Close, and Finish zones

Signed-off-by: Shaun Tancheff <shaun.tancheff@xxxxxxxxxxx>
---
 drivers/ata/libata-scsi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index f06f389..ad6a8a2 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -3504,7 +3504,10 @@ static unsigned int ata_scsi_zbc_out_xlat(struct ata_queued_cmd *qc)
 	/* Compatibility with ZBC r01 */
 	if (!sa)
 		sa = ZO_RESET_WRITE_POINTER;
-	if (sa != ZO_RESET_WRITE_POINTER) {
+	if (!(sa == ZO_CLOSE_ZONE ||
+	      sa == ZO_FINISH_ZONE ||
+	      sa == ZO_OPEN_ZONE ||
+	      sa == ZO_RESET_WRITE_POINTER)) {
 		fp = 1;
 		goto invalid_fld;
 	}
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux