Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cda57b1b authored by Arne Fitzenreiter's avatar Arne Fitzenreiter Committed by Tejun Heo
Browse files

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: default avatarArne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
parent 71d126fd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4239,6 +4239,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