diff options
| author | Peter Geis <[email protected]> | 2022-09-02 14:45:42 -0400 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2022-09-04 20:53:40 +0530 |
| commit | f340ed8664a55a467850ec1689996e63d9ee971a (patch) | |
| tree | 49793a215bf43159f895f704fa7919e3f03155fe /tools/perf/scripts/python | |
| parent | 766ab0ded4c2cca84ac80c036ea38686ff43765b (diff) | |
phy: rockchip-inno-usb2: Return zero after otg sync
The otg sync state patch reuses the ret variable, but fails to set it to
zero after use. This leads to a situation when the otg port is in
peripheral mode where the otg phy aborts halfway through setup. It also
fails to account for a failure to register the extcon notifier. Fix this
by using our own variable and skipping otg sync in case of failure.
Fixes: 8dc60f8da22f ("phy: rockchip-inno-usb2: Sync initial otg state")
Reported-by: Markus Reichl <[email protected]>
Reported-by: Michael Riesch <[email protected]>
Signed-off-by: Peter Geis <[email protected]>
Tested-by: Michael Riesch <[email protected]>
Tested-by: Markus Reichl <[email protected]>
Reviewed-by: Samuel Holland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions