diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-05-19 22:04:43 +0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-17 17:04:36 +0400 |
commit | b7f5767932e6c8fc33f8b6961511fdafcf827e42 (patch) | |
tree | 9334ac72c9093b056f1244a81099211243540b8a /drivers/gpu/vga | |
parent | 62874b837dc5de00f3c8de646e80b73c52d75b01 (diff) | |
download | linux-b7f5767932e6c8fc33f8b6961511fdafcf827e42.tar.xz |
vgaswitcheroo: switch the mux to the igp on power down when runpm is enabled
commit f2bc561610962693be61425cf913778586d8f9c1 upstream.
Avoids blank screens on muxed systems when runpm is active.
bug:
https://bugs.freedesktop.org/show_bug.cgi?id=75917
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/gpu/vga')
-rw-r--r-- | drivers/gpu/vga/vga_switcheroo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index ec0ae2d1686a..6866448083b2 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c @@ -623,7 +623,8 @@ static int vga_switcheroo_runtime_suspend(struct device *dev) ret = dev->bus->pm->runtime_suspend(dev); if (ret) return ret; - + if (vgasr_priv.handler->switchto) + vgasr_priv.handler->switchto(VGA_SWITCHEROO_IGD); vga_switcheroo_power_switch(pdev, VGA_SWITCHEROO_OFF); return 0; } |