diff mbox

[2/2] libata: force disable trim for SuperSSpeed S238

Message ID 1436961277-4069-3-git-send-email-arne_f@ipfire.org
State Not Applicable
Delegated to: David Miller
Headers show

Commit Message

Arne Fitzenreiter July 15, 2015, 11:54 a.m. UTC
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>
---
 drivers/ata/libata-core.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Greg KH July 15, 2015, 2:26 p.m. UTC | #1
On Wed, Jul 15, 2015 at 01:54:37PM +0200, Arne Fitzenreiter wrote:
> 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>
> ---
>  drivers/ata/libata-core.c | 3 +++
>  1 file changed, 3 insertions(+)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Tejun Heo July 15, 2015, 3:26 p.m. UTC | #2
On Wed, Jul 15, 2015 at 01:54:37PM +0200, Arne Fitzenreiter wrote:
> 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>

Applied to libata/for-4.2-fixes w/ stable tag added.

Thanks.
diff mbox

Patch

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index e83fc3d..d2d3b21 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4238,6 +4238,9 @@  static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	{ "Samsung SSD 8*",		NULL,	ATA_HORKAGE_NO_NCQ_TRIM |
 						ATA_HORKAGE_ZERO_AFTER_TRIM, },
 
+	/* devices that don't properly handle TRIM commands */
+	{ "SuperSSpeed S238*",		NULL,	ATA_HORKAGE_NOTRIM, },
+
 	/*
 	 * As defined, the DRAT (Deterministic Read After Trim) and RZAT
 	 * (Return Zero After Trim) flags in the ATA Command Set are