Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935044AbcCPIiz (ORCPT ); Wed, 16 Mar 2016 04:38:55 -0400 Received: from mail.kernel.org ([198.145.29.136]:59420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966084AbcCPIIl (ORCPT ); Wed, 16 Mar 2016 04:08:41 -0400 From: lizf@kernel.org To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Arne Fitzenreiter , Tejun Heo , Zefan Li Subject: [PATCH 3.4 027/107] libata: force disable trim for SuperSSpeed S238 Date: Wed, 16 Mar 2016 16:05:21 +0800 Message-Id: <1458115601-5762-27-git-send-email-lizf@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458115541-5712-1-git-send-email-lizf@kernel.org> References: <1458115541-5712-1-git-send-email-lizf@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1126 Lines: 36 From: Arne Fitzenreiter 3.4.111-rc1 review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Tejun Heo Signed-off-by: Zefan Li --- drivers/ata/libata-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index b5d532f..5a3b08b 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. -- 1.9.1