aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/libata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index b5d247d780f8..4d4ed2c8fec7 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -259,6 +259,7 @@ enum {
259 259
260 /* ata_eh_info->flags */ 260 /* ata_eh_info->flags */
261 ATA_EHI_HOTPLUGGED = (1 << 0), /* could have been hotplugged */ 261 ATA_EHI_HOTPLUGGED = (1 << 0), /* could have been hotplugged */
262 ATA_EHI_RESUME_LINK = (1 << 1), /* need to resume link */
262 263
263 ATA_EHI_DID_RESET = (1 << 16), /* already reset this port */ 264 ATA_EHI_DID_RESET = (1 << 16), /* already reset this port */
264 265
@@ -836,7 +837,7 @@ static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi)
836 if (ehi->flags & ATA_EHI_HOTPLUGGED) 837 if (ehi->flags & ATA_EHI_HOTPLUGGED)
837 return; 838 return;
838 839
839 ehi->flags |= ATA_EHI_HOTPLUGGED; 840 ehi->flags |= ATA_EHI_HOTPLUGGED | ATA_EHI_RESUME_LINK;
840 ehi->hotplug_timestamp = jiffies; 841 ehi->hotplug_timestamp = jiffies;
841 842
842 ehi->err_mask |= AC_ERR_ATA_BUS; 843 ehi->err_mask |= AC_ERR_ATA_BUS;