From: Hannes Reinecke Date: Thu, 14 Jul 2016 00:05:47 +0000 (+0900) Subject: libata-eh: decode all taskfile protocols X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5b51ba6178f5502e6ab1bba75e91a365bc4c718b;p=linux-beck.git libata-eh: decode all taskfile protocols Some taskfile protocol values where missing in ata_eh_link_report(). Signed-off-by: Hannes Reinecke Signed-off-by: Christoph Hellwig Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 7832e5514cb2..5688b86b192d 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -2607,9 +2607,12 @@ static void ata_eh_link_report(struct ata_link *link) [DMA_FROM_DEVICE] = "in", }; static const char *prot_str[] = { + [ATA_PROT_UNKNOWN] = "unknown", + [ATA_PROT_NODATA] = "nodata", [ATA_PROT_PIO] = "pio", [ATA_PROT_DMA] = "dma", [ATA_PROT_NCQ] = "ncq", + [ATAPI_PROT_NODATA] = "nodata", [ATAPI_PROT_PIO] = "pio", [ATAPI_PROT_DMA] = "dma", };