aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorXu Yang <[email protected]>2024-01-29 17:37:39 +0800
committerGreg Kroah-Hartman <[email protected]>2024-02-19 09:30:41 +0100
commitb787a3e781759026a6212736ef8e52cf83d1821a (patch)
treeb89460d5f0b50f3591a328183d1325a54dc239a8 /tools/perf/scripts/python/export-to-postgresql.py
parent1c9be13846c0b2abc2480602f8ef421360e1ad9e (diff)
usb: roles: don't get/set_role() when usb_role_switch is unregistered
There is a possibility that usb_role_switch device is unregistered before the user put usb_role_switch. In this case, the user may still want to get/set_role() since the user can't sense the changes of usb_role_switch. This will add a flag to show if usb_role_switch is already registered and avoid unwanted behaviors. Fixes: fde0aa6c175a ("usb: common: Small class for USB role switches") cc: [email protected] Signed-off-by: Xu Yang <[email protected]> Acked-by: Heikki Krogerus <[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