From: Kai-Heng Feng Date: Fri, 29 Jan 2021 08:43:27 +0000 (+0800) Subject: efifb: Ensure graphics device for efifb stays at PCI D0 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a6c0fd3d5a8b;p=uclinux-h8%2Flinux.git efifb: Ensure graphics device for efifb stays at PCI D0 We are seeing root ports on some desktop boards support D3cold for discrete graphics card. So when efifb is in use while graphics device isn't bound to a driver, PCI and ACPI will put the graphics to D3cold when runtime suspend kicks in, makes efifb stop working. So ensure the graphics device won't be runtime suspended, to keep efifb work all the time. Signed-off-by: Kai-Heng Feng Reviewed-by: Alex Deucher Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20210129084327.986630-1-kai.heng.feng@canonical.com --- diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c index b80ba3d2a9b8..f58a545b3bf3 100644 --- a/drivers/video/fbdev/efifb.c +++ b/drivers/video/fbdev/efifb.c @@ -16,6 +16,7 @@ #include #include #include +#include #include