• Anton Lundin's avatar
    ata: libata-core: Introduce ATA_HORKAGE_NO_LOG_DIR horkage · ac9f0c81
    Anton Lundin authored
    06f6c4c6 ("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: 636f6e2a ("libata: add horkage for missing Identify Device log")
    Cc: stable@vger.kernel.org # v5.10+
    Signed-off-by: default avatarAnton Lundin <glance@acc.umu.se>
    Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
    ac9f0c81
libata-core.c 165 KB