]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: remove existing generic drivers to take over the device
authorJavier Martinez Canillas <javierm@redhat.com>
Sun, 16 May 2021 07:48:33 +0000 (09:48 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 28 May 2021 13:57:19 +0000 (15:57 +0200)
commit4d66c30c0225ea5cb9a27a8789377910253096b0
tree5c3a50afdb4a72c95e6212a226ef77bb46eea6f5
parente012fe79ca13af8e8121f2a48630043c22fe91b3
drm/rockchip: remove existing generic drivers to take over the device

There are drivers that register framebuffer devices very early in the boot
process and make use of the existing framebuffer as setup by the firmware.

If one of those drivers has registered a fbdev, then the fallback fbdev of
the DRM driver won't be bound to the framebuffer console. To avoid that,
remove any existing generic driver and take over the graphics device.

By doing that, the fb mapped to the console is switched correctly from the
early fbdev to the one registered by the rockchip DRM driver:

    [   40.752420] fb0: switching to rockchip-drm-fb from EFI VGA

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210516074833.451643-1-javierm@redhat.com
drivers/gpu/drm/rockchip/rockchip_drm_drv.c