diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2023-10-12 15:53:16 +0900 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2023-10-13 12:46:03 +0900 |
commit | 54d7211da7cd8fbd286532b25f4f0b688fcf94a3 (patch) | |
tree | 389395b1cc0dc449339d86268b1032cc30a566a8 /include | |
parent | 0e7ad4bba2965f777b5fd618734642eb5a19ddcc (diff) |
ata: libata-eh: Spinup disk on resume after revalidation
Move the call to ata_dev_power_set_active() to transition a disk in
standby power mode to the active power mode from
ata_eh_revalidate_and_attach() before doing revalidation to the end of
ata_eh_recover(), after the link speed for the device is reconfigured
(if that was necessary). This is safer as this ensure that the VERIFY
command executed to spinup the disk is executed with the drive properly
reconfigured first.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions