Commit f2bc5616 authored by Alex Deucher's avatar Alex Deucher

vgaswitcheroo: switch the mux to the igp on power down when runpm is enabled

Avoids blank screens on muxed systems when runpm is active.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=75917Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent d148f9e0
...@@ -623,7 +623,8 @@ static int vga_switcheroo_runtime_suspend(struct device *dev) ...@@ -623,7 +623,8 @@ static int vga_switcheroo_runtime_suspend(struct device *dev)
ret = dev->bus->pm->runtime_suspend(dev); ret = dev->bus->pm->runtime_suspend(dev);
if (ret) if (ret)
return ret; return ret;
if (vgasr_priv.handler->switchto)
vgasr_priv.handler->switchto(VGA_SWITCHEROO_IGD);
vga_switcheroo_power_switch(pdev, VGA_SWITCHEROO_OFF); vga_switcheroo_power_switch(pdev, VGA_SWITCHEROO_OFF);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment