summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-18 18:42:34 +0300
committerTakashi Iwai <tiwai@suse.de>2018-07-18 18:42:40 +0300
commit67ece13ffe862f9d17a144c6cd3feef88a57db13 (patch)
treeec2036681d19a9c10b2fad941eb8f58f9eafcfc8 /drivers/ata/libata-core.c
parentfa84cf094ef9667e2b91c104b0a788fd1896f482 (diff)
parent4aaf448fa9754e2d5ee188d32327b24ffc15ca4d (diff)
downloadlinux-67ece13ffe862f9d17a144c6cd3feef88a57db13.tar.xz
Merge branch 'topic/vga_switcheroo' into for-next
Pull the vga_switcheroo audio client fix. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 27d15ed7fa3d..cc71c63df381 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2493,6 +2493,9 @@ int ata_dev_configure(struct ata_device *dev)
(id[ATA_ID_SATA_CAPABILITY] & 0xe) == 0x2)
dev->horkage |= ATA_HORKAGE_NOLPM;
+ if (ap->flags & ATA_FLAG_NO_LPM)
+ dev->horkage |= ATA_HORKAGE_NOLPM;
+
if (dev->horkage & ATA_HORKAGE_NOLPM) {
ata_dev_warn(dev, "LPM support broken, forcing max_power\n");
dev->link->ap->target_lpm_policy = ATA_LPM_MAX_POWER;