]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: libata-core: Allow command duration limits detection for ACS-4 drives
authorIgor Pylypiv <ipylypiv@google.com>
Thu, 11 Apr 2024 20:12:24 +0000 (20:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:19:25 +0000 (11:19 +0200)
commit99618f8a7216a07b83bb0dcf9de92d0deed46595
tree5f5177fff08079cca9739f7cd7c11ce7096aa870
parent05eedb5abc077c09e435dd607d9df87d1856e084
ata: libata-core: Allow command duration limits detection for ACS-4 drives

commit c0297e7dd50795d559f3534887a6de1756b35d0f upstream.

Even though the command duration limits (CDL) feature was first added
in ACS-5 (major version 12), there are some ACS-4 (major version 11)
drives that implement CDL as well.

IDENTIFY_DEVICE, SUPPORTED_CAPABILITIES, and CURRENT_SETTINGS log pages
are mandatory in the ACS-4 standard so it should be safe to read these
log pages on older drives implementing the ACS-4 standard.

Fixes: 62e4a60e0cdb ("scsi: ata: libata: Detect support for command duration limits")
Cc: stable@vger.kernel.org
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/libata-core.c