summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Fitzenreiter <arne_f@ipfire.org>2015-07-15 14:54:37 +0300
committerZefan Li <lizefan@huawei.com>2016-03-21 04:17:45 +0300
commit8210f1587a2854853e5f050d63391c07783e930b (patch)
treea7498e13a6c5e8c1e9c0f60b7d5537e6c81e0e27
parent3330d7bdad8141a862d7d9f19423453fbd92b76a (diff)
downloadlinux-8210f1587a2854853e5f050d63391c07783e930b.tar.xz
libata: force disable trim for SuperSSpeed S238
commit cda57b1b05cf7b8b99ab4b732bea0b05b6c015cc upstream. 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> Signed-off-by: Zefan Li <lizefan@huawei.com>
-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 b5d532f1e431..5a3b08bf651f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4144,6 +4144,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
{ "WD My Book", NULL, ATA_HORKAGE_1_5_GBPS, },
{ "Seagate FreeAgent GoFlex", NULL, ATA_HORKAGE_1_5_GBPS, },
+ /* devices that don't properly handle TRIM commands */
+ { "SuperSSpeed S238*", NULL, ATA_HORKAGE_NOTRIM, },
+
/*
* Devices which choke on SETXFER. Applies only if both the
* device and controller are SATA.