efifb: Ensure graphics device for efifb stays at PCI D0
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 29 Jan 2021 08:43:27 +0000 (16:43 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 22 Feb 2021 07:55:50 +0000 (08:55 +0100)
commita6c0fd3d5a8bac08b0d79301be23f961e9038d60
treed8492b4fb18f68062f664421ac4cfb2751770017
parentc00697b59251f795fa5278cfe4d81407f76a450b
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 <kai.heng.feng@canonical.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210129084327.986630-1-kai.heng.feng@canonical.com
drivers/video/fbdev/efifb.c