From: Bin Liu Date: Mon, 14 Sep 2015 14:12:34 +0000 (-0500) Subject: usb: musb: ensure in peripheral mode when checking session X-Git-Tag: omap-for-v4.3/fixes-rc5~79^2~14^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40af177efc9385af15c49a40976f71e58e6af418;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed