aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/libata.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 283b6be6c319..5838fbf6acf7 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -149,7 +149,6 @@ enum {
149 /* protocol flags */ 149 /* protocol flags */
150 ATA_PROT_FLAG_PIO = (1 << 0), /* is PIO */ 150 ATA_PROT_FLAG_PIO = (1 << 0), /* is PIO */
151 ATA_PROT_FLAG_DMA = (1 << 1), /* is DMA */ 151 ATA_PROT_FLAG_DMA = (1 << 1), /* is DMA */
152 ATA_PROT_FLAG_DATA = ATA_PROT_FLAG_PIO | ATA_PROT_FLAG_DMA,
153 ATA_PROT_FLAG_NCQ = (1 << 2), /* is NCQ */ 152 ATA_PROT_FLAG_NCQ = (1 << 2), /* is NCQ */
154 ATA_PROT_FLAG_ATAPI = (1 << 3), /* is ATAPI */ 153 ATA_PROT_FLAG_ATAPI = (1 << 3), /* is ATAPI */
155 154
@@ -1087,7 +1086,7 @@ static inline bool ata_is_ncq(u8 prot)
1087 1086
1088static inline bool ata_is_data(u8 prot) 1087static inline bool ata_is_data(u8 prot)
1089{ 1088{
1090 return ata_prot_flags(prot) & ATA_PROT_FLAG_DATA; 1089 return ata_prot_flags(prot) & (ATA_PROT_FLAG_PIO | ATA_PROT_FLAG_DMA);
1091} 1090}
1092 1091
1093static inline int is_multi_taskfile(struct ata_taskfile *tf) 1092static inline int is_multi_taskfile(struct ata_taskfile *tf)