]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Add factory recertified Crucial M500s to blacklist
authorGuillermo A. Amaral <g@maral.me>
Wed, 26 Aug 2015 06:29:13 +0000 (23:29 -0700)
committerLuis Henriques <luis.henriques@canonical.com>
Thu, 3 Sep 2015 12:29:57 +0000 (13:29 +0100)
commit 7a7184b01aa9deb86df661c6f7cbcf69a95b728c upstream.

The Crucial M500 is known to have issues with queued TRIM commands, the
factory recertified SSDs use a different model number naming convention
which causes them to get ignored by the blacklist.

The new naming convention boils down to: s/Crucial_/FC/

Signed-off-by: Guillermo A. Amaral <g@maral.me>
Signed-off-by: Tejun Heo <tj@kernel.org>
[ luis: backported to 3.16:
  - dropped ATA_HORKAGE_ZERO_AFTER_TRIM flag
  - adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/ata/libata-core.c

index c9707bcf430c5afcb84c3b79733e9428c98f8a18..cfa2982d72866ae32ebd0e71df48e6a6fa1a1a96 100644 (file)
@@ -4231,6 +4231,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
        { "Crucial_CT*M550*",           "MU01", ATA_HORKAGE_NO_NCQ_TRIM, },
        { "Crucial_CT*MX100*",          "MU01", ATA_HORKAGE_NO_NCQ_TRIM, },
        { "Samsung SSD 8*",             NULL,   ATA_HORKAGE_NO_NCQ_TRIM, },
+       { "FCCT*M500*",                 NULL,   ATA_HORKAGE_NO_NCQ_TRIM, },
 
        /* devices that don't properly handle TRIM commands */
        { "SuperSSpeed S238*",          NULL,   ATA_HORKAGE_NOTRIM, },