]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed
authorHans de Goede <hdegoede@redhat.com>
Sat, 7 Sep 2019 20:32:38 +0000 (22:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2019 19:37:27 +0000 (14:37 -0500)
commit422758b1f95b2b87a5a499f893e4d3ba9cdf3465
tree35aae5cc7dc725b8b863531a59374c284c43854a
parent52b2b5e2623f31a97b0d075e035f048b1610b351
drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed

Bail from the pci_driver probe function instead of from the drm_driver
load function.

This avoid /dev/dri/card0 temporarily getting registered and then
unregistered again, sending unwanted add / remove udev events to
userspace.

Specifically this avoids triggering the (userspace) bug fixed by this
plymouth merge-request:
https://gitlab.freedesktop.org/plymouth/plymouth/merge_requests/59

Note that despite that being an userspace bug, not sending unnecessary
udev events is a good idea in general.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1490490
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c