nvidiafb: detect the hardware support before removing console.
authorDave Airlie <airlied@redhat.com>
Sun, 5 Feb 2023 21:05:28 +0000 (07:05 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Feb 2023 22:42:29 +0000 (08:42 +1000)
commit04119ab1a49fc41cb70f0472be5455af268fa260
tree42c3848ff259188a515add7bbb34351774bef496
parent4ec5183ec48656cec489c49f989c508b68b518e3
nvidiafb: detect the hardware support before removing console.

This driver removed the console, but hasn't yet decided if it could
take over the console yet. Instead of doing that, probe the hw for
support and then remove the console afterwards.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216859
Fixes: 145eed48de27 ("fbdev: Remove conflicting devices on PCI bus")
Reported-by: Zeno Davatz <zdavatz@gmail.com>
Tested-by: Zeno Davatz <zdavatz@gmail.com>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230205210751.3842103-1-airlied@gmail.com
drivers/video/fbdev/nvidia/nvidia.c