Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8620543e authored by Hema HK's avatar Hema HK Committed by Felipe Balbi
Browse files

usb: musb: Calling VBUS pulsing API when SRP is initiated.



Call VBUS pulsing API when there is SRP initiation from user space.

Signed-off-by: default avatarHema HK <hemahk@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 603ab524
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1553,6 +1553,10 @@ static int musb_gadget_wakeup(struct usb_gadget *gadget)
				break;
		}

		spin_unlock_irqrestore(&musb->lock, flags);
		otg_start_srp(musb->xceiv);
		spin_lock_irqsave(&musb->lock, flags);

		/* Block idling for at least 1s */
		musb_platform_try_idle(musb,
			jiffies + msecs_to_jiffies(1 * HZ));