]> git.baikalelectronics.ru Git - kernel.git/commit
ata: libata-core: Introduce ATA_HORKAGE_NO_LOG_DIR horkage
authorAnton Lundin <glance@acc.umu.se>
Thu, 3 Feb 2022 09:41:35 +0000 (10:41 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 4 Feb 2022 07:44:23 +0000 (16:44 +0900)
commita34a87ab30e4a03db736d7636e0866015dcb2577
treec12492335e86eef9695fa8a3d46e56da2e5e18d3
parent78c957d7757e6525e395ded9255046cb225978ac
ata: libata-core: Introduce ATA_HORKAGE_NO_LOG_DIR horkage

c762f22b2674 ("ata: libata: add missing ata_identify_page_supported() calls")
introduced additional calls to ata_identify_page_supported(), thus also
adding indirectly accesses to the device log directory log page through
ata_log_supported(). Reading this log page causes SATADOM-ML 3ME devices
to lock up.

Introduce the horkage flag ATA_HORKAGE_NO_LOG_DIR to prevent accesses to
the log directory in ata_log_supported() and add a blacklist entry
with this flag for "SATADOM-ML 3ME" devices.

Fixes: afa6cde1be03 ("libata: add horkage for missing Identify Device log")
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-core.c
include/linux/libata.h