HomeFreeBSD

fb: Add a default getinfo method

Description

fb: Add a default getinfo method

fb_getinfo is badly designed as it returns either the
info if the driver have the method or ENXIO via the kobj stuff
if the driver doesn't have it.
Add a default method that returns NULL as the code already checks this
and it avoid changing the interface.
None of the drm drivers supported have this method and it sometimes
fails and panic when loading them (for now only usb-c docks seems to be
affected).

MFC after: 3 days
Sponsored by: Beckhoff Automation GmbH & Co. KG

Details

Provenance
manuAuthored on Jun 21 2022, 1:52 PM
Parents
rGb256d2dc0c2f: Temporarily skip flaky test case: sys.netpfil.common.dummynet.ipfw_queue
Branches
Unknown
Tags
Unknown