diff options
author | Tony Lindgren <[email protected]> | 2020-01-15 07:25:29 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-01-15 14:46:55 +0100 |
commit | 93dc256871297071a24f7f9ce0abfddfff15094d (patch) | |
tree | c106922fba4fd3221f7491baf6c7d868d09fb01f /tools/perf/scripts/python/stackcollapse.py | |
parent | 15f1122f92c02f654037d8fb98164b785207b7af (diff) |
usb: musb: Add musb_set_host and peripheral and use them for omap2430
At least some revisions of musb core need to set devctl session bit
in peripheral mode to force musb to host mode. And we have places
clearing the devctl session bit.
Let's add a generic function to do this, and use it for omap2430.
This should get us a bit closer to completely removing devctl register
tinkering in the SoC glue code.
Before making use of this code for the other glue layers, things need
to be tested carefully as there may be a approximately a 200 ms delay
needed between powering up musb and calling musb_set_host() to avoid.
Otherwise the system hangs at least with omap2430 glue layer.
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
[[email protected]: fixed "line over 80 characters" warning]
Signed-off-by: Bin Liu <[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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions