]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Modify quirks for MX100 to limit NCQ_TRIM quirk to MU01 version
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Mar 2018 15:34:00 +0000 (16:34 +0100)
committerTejun Heo <tj@kernel.org>
Mon, 19 Mar 2018 15:36:38 +0000 (08:36 -0700)
commit259666a68e3416a212cb2b670786442483a70f75
tree2cba4bcefee5bd6aec115268287f5693a7539ca2
parent7fb58e4bcf209f766ac2d8ea2796b09a4f622a6b
libata: Modify quirks for MX100 to limit NCQ_TRIM quirk to MU01 version

When commit 97f55e344edbef ("libata: Apply NOLPM quirk to Crucial MX100
512GB SSDs") was added it inherited the ATA_HORKAGE_NO_NCQ_TRIM quirk
from the existing "Crucial_CT*MX100*" entry, but that entry sets model_rev
to "MU01", where as the entry adding the NOLPM quirk sets it to NULL.

This means that after this commit we no apply the NO_NCQ_TRIM quirk to
all "Crucial_CT512MX100*" SSDs even if they have the fixed "MU02"
firmware. This commit splits the "Crucial_CT512MX100*" quirk into 2
quirks, one for the "MU01" firmware and one for all other firmware
versions, so that we once again only apply the NO_NCQ_TRIM quirk to the
"MU01" firmware version.

Fixes: 97f55e344edbef ("libata: Apply NOLPM quirk to ... MX100 512GB SSDs")
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c