]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: libata-core: Do not try to set sleeping devices to standby
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 11 Jan 2024 11:51:22 +0000 (20:51 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:59 +0000 (13:34 +0100)
commit699e2648e1957caba979f75d0095b3464e880513
tree249ee1c3940f4cd8d1373fe4b37e212544e8f109
parentcf245e831afc725428cd4482788b75cd103fb236
ata: libata-core: Do not try to set sleeping devices to standby

commit 4b085736e44dbbe69b5eea1a8a294f404678a1f4 upstream.

In ata ata_dev_power_set_standby(), check that the target device is not
sleeping. If it is, there is no need to do anything.

Fixes: aa3998dbeb3a ("ata: libata-scsi: Disable scsi device manage_system_start_stop")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/libata-core.c