aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 8cb35bb87605..496edaff119a 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2208,9 +2208,11 @@ int ata_eh_reset(struct ata_link *link, int classify,
2208 ata_link_for_each_dev(dev, link) { 2208 ata_link_for_each_dev(dev, link) {
2209 /* After the reset, the device state is PIO 0 2209 /* After the reset, the device state is PIO 0
2210 * and the controller state is undefined. 2210 * and the controller state is undefined.
2211 * Record the mode. 2211 * Reset also wakes up drives from sleeping
2212 * mode.
2212 */ 2213 */
2213 dev->pio_mode = XFER_PIO_0; 2214 dev->pio_mode = XFER_PIO_0;
2215 dev->flags &= ~ATA_DFLAG_SLEEPING;
2214 2216
2215 if (ata_link_offline(link)) 2217 if (ata_link_offline(link))
2216 continue; 2218 continue;