summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2017-01-26 13:28:19 -0800
committerJack Pham <jackp@codeaurora.org>2017-02-10 17:42:06 -0800
commit47fdec0cf105986642b30e3e901db4930860996f (patch)
tree91e0717a85f3c7ce7a70218a09996559b59389c7 /tools/perf/scripts/python
parentdd6494d94ef819c093157f73a314e9927305d305 (diff)
usb: pd: Make select_pdo_store() wait until request goes through
When sending a request through the 'select_pdo' sysfs file, make sure the request has gone through and is acknowledged by the source before returning. This allows for checking if the request was rejected so that an error can be returned. Rename the 'swap_complete' completion variable to 'is_ready' so it can be reused in this context. Also add a mutex so that select_pdo will not contend with a dual_role swap. Change-Id: Ie8b088faa15c67915e3bd96972b4f59f0cc66afe Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions