]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/radeon: add late_register for connector
authorWu Hoi Pok <wuhoipok@gmail.com>
Fri, 4 Oct 2024 01:05:59 +0000 (09:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:55:21 +0000 (14:55 -0400)
commit8e82d1199564ea0baab7be31f6558406bab4fe1d
tree09606e1879dae888373afd7d3428d80407a3b70b
parentd7d7b947a4fa6d0a82ff2bf0db413edc63738e3a
drm/radeon: add late_register for connector

The patch is to solve null dereference in 'aux.dev', which is
introduced in recent radeon rework. By having 'late_register',
the connector should be registered after 'drm_dev_register'
automatically, where in before it is the opposite.

Fixes: 90985660ba48 ("drm/radeon: remove load callback from kms_driver")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3665
Tested-by: Hans de Goede <hdegoede@redhat.com>
Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Wu Hoi Pok <wuhoipok@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit b4c1ad70e279bacbc772a468033bdecce2f5e0dc)
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/radeon_connectors.c