USB: OTG: Ignore PMIC BSV interrupt while mode is A Host Mode or above
Seeing spurious PMIC BSV interrupt while otg is in A host mode. Hence ignore PMIC BSV interrupts in this cases. CRs-Fixed: 373645 Change-Id: I99c13c22e2485f2a891bfb3dd7870794ca86296b Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
6c8c08f8cf
commit
dfce0b5cc5
@@ -2739,6 +2739,11 @@ static void msm_otg_set_vbus_state(int online)
|
||||
{
|
||||
static bool init;
|
||||
struct msm_otg *motg = the_msm_otg;
|
||||
struct usb_otg *otg = motg->phy.otg;
|
||||
|
||||
/* In A Host Mode, ignore received BSV interrupts */
|
||||
if (otg->phy->state >= OTG_STATE_A_IDLE)
|
||||
return;
|
||||
|
||||
if (online) {
|
||||
pr_debug("PMIC: BSV set\n");
|
||||
|
||||
Reference in New Issue
Block a user