aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Fitzenreiter <arne_f@ipfire.org>2015-07-15 07:54:37 -0400
committerTejun Heo <tj@kernel.org>2015-07-15 11:22:35 -0400
commitcda57b1b05cf7b8b99ab4b732bea0b05b6c015cc (patch)
tree276a8e2332d79f14538ca0688f1242a1c7d8104d
parent71d126fd28de2d4d9b7b2088dbccd7ca62fad6e0 (diff)
libata: force disable trim for SuperSSpeed S238
This device loses blocks, often the partition table area, on trim. Disable TRIM. http://pcengines.ch/msata16a.htm Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org> Signed-off-by: Tejun Heo <tj@kernel.org> Cc: stable@vger.kernel.org
-rw-r--r--drivers/ata/libata-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 58a6db8f0833..ed2b218ea64d 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4239,6 +4239,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
4239 { "Samsung SSD 8*", NULL, ATA_HORKAGE_NO_NCQ_TRIM | 4239 { "Samsung SSD 8*", NULL, ATA_HORKAGE_NO_NCQ_TRIM |
4240 ATA_HORKAGE_ZERO_AFTER_TRIM, }, 4240 ATA_HORKAGE_ZERO_AFTER_TRIM, },
4241 4241
4242 /* devices that don't properly handle TRIM commands */
4243 { "SuperSSpeed S238*", NULL, ATA_HORKAGE_NOTRIM, },
4244
4242 /* 4245 /*
4243 * As defined, the DRAT (Deterministic Read After Trim) and RZAT 4246 * As defined, the DRAT (Deterministic Read After Trim) and RZAT
4244 * (Return Zero After Trim) flags in the ATA Command Set are 4247 * (Return Zero After Trim) flags in the ATA Command Set are