]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-device-manager: Accept new simpledrm/fbdev devices from udev events after timeout
authorHans de Goede <hdegoede@redhat.com>
Mon, 28 Feb 2022 15:46:34 +0000 (16:46 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 7 Mar 2022 14:12:09 +0000 (15:12 +0100)
commit9a48b3b5328f094cfbfb110cb3b30df6c78ba061
treed3e3ef691c1ef28901b82692c1c3965f89c08c57
parent5acb3ceee3b815bcd338ee75492739dfd57475c5
ply-device-manager: Accept new simpledrm/fbdev devices from udev events after timeout

Before the device-timeout elapses verify_add_or_change () blocks new
simpledrm and fbdev getting added through udev add events because we
really only want native drm devices.

Then when the timeout triggers the list of udev devices existing at
that point int time is rescanned and any drm (including simpledrm) and
fbdev devices are added (filtering out duplicates).

But what if a simpledrm or fbdev device for some reason only shows
up after the timeout? Before this change those would then be ignored
for ever.

Add a manager->device_timeout_elapsed check and make verify_add_or_change ()
accept any drm + fbdev devices after the timeout. Note this addresses
a mostly theoretically issue since in practice a simpledrm or fbdev device
showing up later is very unlikely.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/libply-splash-core/ply-device-manager.c