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

(cherry picked from commit 3cbf6518d6eea08e0fbe6d7c609debac5ab31992)

Details

Provenance
manuAuthored on Jun 21 2022, 1:52 PM
Parents
rGe83f76ac2188: usb/dwc3: Only force USB2 based on the PHY register and IP version
Branches
Unknown
Tags
Unknown