diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 7dcc049b64..4017d5f3f7 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -1374,12 +1374,8 @@ static void ata_thread(void) | |||
1374 | } | 1374 | } |
1375 | queue_wait(&ata_queue, &ev); | 1375 | queue_wait(&ata_queue, &ev); |
1376 | switch ( ev.id ) { | 1376 | switch ( ev.id ) { |
1377 | case SYS_POWEROFF: | ||
1378 | call_ata_idle_notifys(false); | ||
1379 | break; | ||
1380 | case SYS_USB_CONNECTED: | ||
1381 | call_ata_idle_notifys(false); | ||
1382 | #ifndef USB_NONE | 1377 | #ifndef USB_NONE |
1378 | case SYS_USB_CONNECTED: | ||
1383 | if (poweroff) { | 1379 | if (poweroff) { |
1384 | mutex_lock(&ata_mtx); | 1380 | mutex_lock(&ata_mtx); |
1385 | ata_led(true); | 1381 | ata_led(true); |
@@ -1394,8 +1390,8 @@ static void ata_thread(void) | |||
1394 | 1390 | ||
1395 | /* Wait until the USB cable is extracted again */ | 1391 | /* Wait until the USB cable is extracted again */ |
1396 | usb_wait_for_disconnect(&ata_queue); | 1392 | usb_wait_for_disconnect(&ata_queue); |
1397 | #endif | ||
1398 | break; | 1393 | break; |
1394 | #endif | ||
1399 | case Q_SLEEP: | 1395 | case Q_SLEEP: |
1400 | call_ata_idle_notifys(true); | 1396 | call_ata_idle_notifys(true); |
1401 | last_disk_activity = current_tick - sleep_timeout + (HZ/2); | 1397 | last_disk_activity = current_tick - sleep_timeout + (HZ/2); |