[PATCH 1/2] ARM: pxa: palm27x: fix udc device initialization
Marek Vasut
marex at denx.de
Sat Dec 22 22:24:16 EST 2012
Dear Mike Dunn,
> This patch fixes some bad behaviour from the usb gadget during machine
> initialization by changing the management of the D+ pull-up gpio from the
> gpio-vbus driver to the pxa27x-udc driver. Also, code that drives the
> pull-up high is removed. (The gpio-vbus driver can optionally manage the
> D+ line pull-up, but the pxa27x-udc driver does this itself.)
>
> Without this patch, the host senses the presence of the usb gadget during
> machine initialization (when palm27x_udc_init() runs), at which point it
> tries to enumerate the newly detected usb gadget. But because the
> pxa27x-udc driver has not been initialized yet, there's no gadget driver
> to respond to the host, and enumeration fails. Tested on my Palm Treo680.
[...]
I think it was the whole big idea to let gpio-vbus manage this kind of stuff.
But it's been a while, Ccing Haojian to review these.
Best regards,
Marek Vasut
More information about the linux-arm-kernel
mailing list