diff options
author | Arne Fitzenreiter <arne_f@ipfire.org> | 2015-07-15 13:54:37 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2015-08-12 16:33:21 +0200 |
commit | 54f13a7566c701a59a5a84d37a4568e726cbb4eb (patch) | |
tree | fe8569ddf7fd28a07f6e38a27ed2c2e12daf1810 | |
parent | 7ceea41b03e5d31fc9781373cca839dd882c9b58 (diff) | |
download | kernel_samsung_smdk4412-54f13a7566c701a59a5a84d37a4568e726cbb4eb.zip kernel_samsung_smdk4412-54f13a7566c701a59a5a84d37a4568e726cbb4eb.tar.gz kernel_samsung_smdk4412-54f13a7566c701a59a5a84d37a4568e726cbb4eb.tar.bz2 |
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: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/ata/libata-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index b4486c1..f2d8dae 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -4155,6 +4155,9 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { { "PIONEER DVD-RW DVR-212D", NULL, ATA_HORKAGE_NOSETXFER }, { "PIONEER DVD-RW DVR-216D", NULL, ATA_HORKAGE_NOSETXFER }, + /* devices that don't properly handle TRIM commands */ + { "SuperSSpeed S238*", NULL, ATA_HORKAGE_NOTRIM, }, + /* * Some WD SATA-I drives spin up and down erratically when the link * is put into the slumber mode. We don't have full list of the |