summaryrefslogtreecommitdiff
path: root/samples/uhid
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2015-09-14 14:12:34 (GMT)
committerFelipe Balbi <balbi@ti.com>2015-09-14 15:14:48 (GMT)
commit40af177efc9385af15c49a40976f71e58e6af418 (patch)
tree60ee28428201c16fb18e6acd17d808ac1476795c /samples/uhid
parente2ae0692bf6f71c8b841889b655d0dc08413e4e3 (diff)
downloadlinux-40af177efc9385af15c49a40976f71e58e6af418.tar.xz
usb: musb: ensure in peripheral mode when checking session
The change ensures otg is not in a A- state when checking for VBUS in peripheral mode. musb_start() where VBUS checking is in can be called in many situations. One example is in babble recovery routine, in which otg is transitioning from A-HOST to A-WAIT-BCON, but VBUS discharge takes time, so musb->is_active could be set to 1 due to this improper checking, then it causes musb_bus_suspend() failed which leads to warning log message flooding. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'samples/uhid')
0 files changed, 0 insertions, 0 deletions