aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/libata.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 16ebdf152c75..74800ad6d81f 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -915,16 +915,17 @@ extern void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...);
915extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...); 915extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...);
916extern void ata_ehi_clear_desc(struct ata_eh_info *ehi); 916extern void ata_ehi_clear_desc(struct ata_eh_info *ehi);
917 917
918static inline void __ata_ehi_hotplugged(struct ata_eh_info *ehi) 918static inline void ata_ehi_schedule_probe(struct ata_eh_info *ehi)
919{ 919{
920 ehi->flags |= ATA_EHI_HOTPLUGGED | ATA_EHI_RESUME_LINK; 920 ehi->flags |= ATA_EHI_RESUME_LINK;
921 ehi->action |= ATA_EH_SOFTRESET; 921 ehi->action |= ATA_EH_SOFTRESET;
922 ehi->probe_mask |= (1 << ATA_MAX_DEVICES) - 1; 922 ehi->probe_mask |= (1 << ATA_MAX_DEVICES) - 1;
923} 923}
924 924
925static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi) 925static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi)
926{ 926{
927 __ata_ehi_hotplugged(ehi); 927 ata_ehi_schedule_probe(ehi);
928 ehi->flags |= ATA_EHI_HOTPLUGGED;
928 ehi->err_mask |= AC_ERR_ATA_BUS; 929 ehi->err_mask |= AC_ERR_ATA_BUS;
929} 930}
930 931