aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2023-08-29 14:39:10 +0300
committerVille Syrjälä <[email protected]>2023-09-15 14:46:42 +0300
commit21b6c2812f3d9cbcfce9eca76632e2cc8fef214f (patch)
tree8aefcb51f5cb4caca258d03cb5df80d28904ef89 /tools/perf/scripts/python
parent83a30739970857d3a2d8b8f2f62f829231347b5f (diff)
drm/sysfs: Register "ddc" symlink later
Currently drm_sysfs_connector_add() attempts to register the "ddc" symlink (based one connector->ddc) before the driver's .early_register() hook has been called. That is too early for i915 which only fully registers the aux ch and associated i2c bus from said hook (to prevent half initialized stuff getting exposed to userspace). This causes my attempt at using drm_connector_init_with_ddc() to fail, and the entire connector disappears from sysfs on account of sysfs_create_link() failing. To fix that split the sysfs symlink stuff into separate functions (drm_sysfs_connector_add_late() and drm_sysfs_connector_remove_early()) which are called on the opposite side of the .later_register() and .early_unregister() hooks. Cc: Andrzej Pietrasiewicz <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Andrzej Hajda <[email protected]> Cc: Emil Velikov <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Neil Armstrong <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Jani Nikula <[email protected]> Acked-by: Thomas Zimmermann <[email protected]> #irc
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions