Displaying 1 result from an estimated 1 matches for "modeset_fini".
2023 Mar 01
0
[PATCH v4] drm/virtio: Add option to disable KMS support
...Can we get rid of that please, for robustness reasons?
I'd suggest to have a is_kms_enabled() helper function (probably best as
inline so gcc can figure it is constant false for CONFIG_KMS=n and throw
away unreachable code). Add "if (!is_kms_enabled()) return;" to
modeset_init() and modeset_fini() instead of stubbing them out. Use the
drm_device->driver_features override in both cases.
Also the edid check can go away. As already mentioned this is about a
device feature not a edid being present.
take care,
Gerd