diff options
author | Grazvydas Ignotas <[email protected]> | 2016-10-09 20:28:19 +0300 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2016-10-12 15:44:12 -0400 |
commit | 40492f60794aaf32576cb42d9af86eed785a6e63 (patch) | |
tree | e34852ace546e9ed191cc74273b1ee753f6bed35 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 69405d3da98b48633b78a49403e4f9cdb7c6a0f5 (diff) |
drm/amdgpu: use .early_unregister hook to remove DP AUX i2c
When DisplayPort AUX channel i2c adapter is registered, drm_connector's
kdev member is used as a parent, so we get sysfs structure like:
/drm/card1/card1-DP-2/i2c-12
Because of that, there is a problem when drm core (and not the driver)
calls drm_connector_unregister(), it removes parent sysfs entries
('card1-DP-2' in our example) while the i2c adapter is still registered.
Later we get a WARN when we try to unregister the i2c adapter:
WARNING: CPU: 3 PID: 1374 at fs/sysfs/group.c:243 sysfs_remove_group+0x14c/0x150
sysfs group ffffffff82911e40 not found for kobject 'i2c-12'
To fix it, we can use the .early_unregister hook to unregister the i2c
adapter before drm_connector's sysfs is torn down.
Signed-off-by: Grazvydas Ignotas <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions