]> git.baikalelectronics.ru Git - kernel.git/commit
nvidiafb: detect the hardware support before removing console.
authorDave Airlie <airlied@redhat.com>
Sun, 5 Feb 2023 21:05:28 +0000 (07:05 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:11:45 +0000 (19:11 +0100)
commita1455226df14cc3a2751b5c20791baf8cf15ddb9
treeea8f12d8cb6498b9f1cb36031098c10ef1c8081f
parent93904d3661bfe4ad7411bdb491b2491226a02bdb
nvidiafb: detect the hardware support before removing console.

[ Upstream commit 0e09eed2154b10f84ce85357faaa8ff4cdcb0f67 ]

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: 41539220b34c ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/nvidia/nvidia.c