aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 2803ab8e9243..c51502c047a4 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1062,7 +1062,7 @@ static inline int ata_try_flush_cache(const struct ata_device *dev)
1062 1062
1063static inline unsigned int ac_err_mask(u8 status) 1063static inline unsigned int ac_err_mask(u8 status)
1064{ 1064{
1065 if (status & ATA_BUSY) 1065 if (status & (ATA_BUSY | ATA_DRQ))
1066 return AC_ERR_HSM; 1066 return AC_ERR_HSM;
1067 if (status & (ATA_ERR | ATA_DF)) 1067 if (status & (ATA_ERR | ATA_DF))
1068 return AC_ERR_DEV; 1068 return AC_ERR_DEV;