diff options
author | Hans de Goede <[email protected]> | 2020-08-09 16:19:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-08-18 12:08:44 +0200 |
commit | 25794e3079d2a98547b6bf5764ef0240aa89b798 (patch) | |
tree | d7d7c6cc676b94d473875c98d03e237b85abd88d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7e90057f125c8c852940b848e06e7a72f050fc6f (diff) |
usb: typec: ucsi: Rework ppm_lock handling
The ppm_lock really only needs to be hold during 2 functions:
ucsi_reset_ppm() and ucsi_run_command().
Push the taking of the lock down into these 2 functions, renaming
ucsi_run_command() to ucsi_send_command() which was an existing
wrapper already taking the lock for its callers.
This simplifies things for the callers and removes the difference
between ucsi_send_command() and ucsi_run_command() which has led
to various locking bugs in the past.
Cc: [email protected]
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Reviewed-by: Guenter Roeck <[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