summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-trace.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-04-25 13:45:53 +0300
committerTejun Heo <tj@kernel.org>2016-05-09 19:36:46 +0300
commit27708a9579ee069c6e0ebb6e61ac1114ed1d546c (patch)
tree1c3621cfb397453ea044274a5940b23dcd4d1856 /drivers/ata/libata-trace.c
parent28a3fc2295a744a0d2ddf86b2ccdf03fbab123f9 (diff)
downloadlinux-27708a9579ee069c6e0ebb6e61ac1114ed1d546c.tar.xz
libata: Implement ZBC OUT translation
ZAC drives implement a 'ZAC Management Out' command template, which maps onto the ZBC OUT command. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata-trace.c')
-rw-r--r--drivers/ata/libata-trace.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/ata/libata-trace.c b/drivers/ata/libata-trace.c
index 9caeabd69ccb..1111ba7db5b3 100644
--- a/drivers/ata/libata-trace.c
+++ b/drivers/ata/libata-trace.c
@@ -197,6 +197,22 @@ libata_trace_parse_subcmd(struct trace_seq *p, unsigned char cmd,
break;
}
break;
+ case ATA_CMD_ZAC_MGMT_OUT:
+ switch (feature) {
+ case ATA_SUBCMD_ZAC_MGMT_OUT_CLOSE_ZONE:
+ trace_seq_printf(p, " CLOSE_ZONE");
+ break;
+ case ATA_SUBCMD_ZAC_MGMT_OUT_FINISH_ZONE:
+ trace_seq_printf(p, " FINISH_ZONE");
+ break;
+ case ATA_SUBCMD_ZAC_MGMT_OUT_OPEN_ZONE:
+ trace_seq_printf(p, " OPEN_ZONE");
+ break;
+ case ATA_SUBCMD_ZAC_MGMT_OUT_RESET_WRITE_POINTER:
+ trace_seq_printf(p, " RESET_WRITE_POINTER");
+ break;
+ }
+ break;
}
trace_seq_putc(p, 0);