summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-transport.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-07-31 09:59:28 +0200
committerIngo Molnar <mingo@kernel.org>2015-07-31 09:59:28 +0200
commitacd632eb64b6cd8e25583bb248c36aa937b8f021 (patch)
tree993d276cbadb450fe8cf5e3c66d444a905d452e7 /drivers/ata/libata-transport.c
parent4b0c53e9e1a2a785746b2d379a32cb70b4dbb2fd (diff)
parent5542b2aa9eea3f2bb922029c8cc4b4346c4f6b1c (diff)
downloadtalos-obmc-linux-acd632eb64b6cd8e25583bb248c36aa937b8f021.tar.gz
talos-obmc-linux-acd632eb64b6cd8e25583bb248c36aa937b8f021.zip
Merge branch 'perf/urgent' into perf/core, to merge fixes before pulling more changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/ata/libata-transport.c')
-rw-r--r--drivers/ata/libata-transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c
index d6c37bcd416d..e2d94972962d 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -569,6 +569,8 @@ show_ata_dev_trim(struct device *dev,
if (!ata_id_has_trim(ata_dev->id))
mode = "unsupported";
+ else if (ata_dev->horkage & ATA_HORKAGE_NOTRIM)
+ mode = "forced_unsupported";
else if (ata_dev->horkage & ATA_HORKAGE_NO_NCQ_TRIM)
mode = "forced_unqueued";
else if (ata_fpdma_dsm_supported(ata_dev))
OpenPOWER on IntegriCloud