diff options
author | Amelie Delaunay <[email protected]> | 2021-07-16 14:07:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-07-21 09:16:26 +0200 |
commit | 86762ad4abcc549deb7a155c8e5e961b9755bcf0 (patch) | |
tree | 71245fd3dce19c2e6ef17f76754bc20b74aa704f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6abf2fe6b4bf6e5256b80c5817908151d2d33e9f (diff) |
usb: typec: stusb160x: register role switch before interrupt registration
During interrupt registration, attach state is checked. If attached,
then the Type-C state is updated with typec_set_xxx functions and role
switch is set with usb_role_switch_set_role().
If the usb_role_switch parameter is error or null, the function simply
returns 0.
So, to update usb_role_switch role if a device is attached before the
irq is registered, usb_role_switch must be registered before irq
registration.
Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family")
Cc: stable <[email protected]>
Signed-off-by: Amelie Delaunay <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions