[PATCH v2 2/2] musb: sunxi: Set state to A_WAIT_VRISE when enabling Vbus
Bin Liu
b-liu at ti.com
Mon May 16 13:15:12 PDT 2016
On Sat, May 14, 2016 at 02:45:05PM +0200, Hans de Goede wrote:
> When the board is powering attached usb devices via the otg port
> sometimes / on some devices it takes slightly too long for the Vbus
> detection code in phy-sun4i-usb.c to signal that Vbus is high after
> enabling Vbus and the musb hardware signals a MUSB_INTR_VBUSERROR
> interrupt.
>
> This commit sets the otg state to A_WAIT_VRISE upon enabling Vbus
> making musb_stage0_irq() ignore the first VBUSERR_RETRY_COUNT
> VBUSERROR interrupts, fixing connection issues in these cases.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
Signed-off-by: Bin Liu <b-liu at ti.com>
Regards,
-Bin.
More information about the linux-arm-kernel
mailing list