From: b-liu@ti.com (Bin Liu)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/2] musb: sunxi: Set state to A_WAIT_VRISE when enabling Vbus
Date: Mon, 16 May 2016 15:15:12 -0500 [thread overview]
Message-ID: <20160516201512.GB9927@uda0271908> (raw)
In-Reply-To: <1463229905-26387-2-git-send-email-hdegoede@redhat.com>
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@redhat.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Regards,
-Bin.
next prev parent reply other threads:[~2016-05-16 20:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-14 12:45 [PATCH v2 1/2] musb: sunxi: Add set_mode platform function Hans de Goede
2016-05-14 12:45 ` [PATCH v2 2/2] musb: sunxi: Set state to A_WAIT_VRISE when enabling Vbus Hans de Goede
2016-05-16 20:15 ` Bin Liu [this message]
2016-05-16 20:11 ` [PATCH v2 1/2] musb: sunxi: Add set_mode platform function Bin Liu
2016-05-20 20:55 ` Bin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160516201512.GB9927@uda0271908 \
--to=b-liu@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox