* [PATCH] usb: at91_udc: pass the vbus initial value
@ 2015-02-04 10:19 Bo Shen
2015-02-04 11:55 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Bo Shen @ 2015-02-04 10:19 UTC (permalink / raw)
To: s.hauer, plagnioj; +Cc: barebox
If without pass the vbus initial value, the vbus status alway
present as 0 even if the vbus is connected to 5v.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
drivers/usb/gadget/at91_udc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 60e1ff7..b36ef19 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -1464,6 +1464,8 @@ static int __init at91udc_probe(struct device_d *dev)
DBG(udc, "VBUS detection: host:%s \n",
udc->vbus ? "present":"absent");
+ udc->gpio_vbus_val = udc->vbus;
+
dev_add_param_bool(dev, "vbus",
at91_udc_vbus_set, NULL, &udc->gpio_vbus_val, udc);
} else {
--
2.3.0.rc0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: at91_udc: pass the vbus initial value
2015-02-04 10:19 [PATCH] usb: at91_udc: pass the vbus initial value Bo Shen
@ 2015-02-04 11:55 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-02-04 11:55 UTC (permalink / raw)
To: Bo Shen; +Cc: barebox
On Wed, Feb 04, 2015 at 06:19:04PM +0800, Bo Shen wrote:
> If without pass the vbus initial value, the vbus status alway
> present as 0 even if the vbus is connected to 5v.
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
>
> drivers/usb/gadget/at91_udc.c | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-04 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 10:19 [PATCH] usb: at91_udc: pass the vbus initial value Bo Shen
2015-02-04 11:55 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox