9
0
Fork 0

usb: at91_udc: pass the vbus initial value

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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Bo Shen 2015-02-04 18:19:04 +08:00 committed by Sascha Hauer
parent b3d52d5b9b
commit 3ee82c6779
1 changed files with 2 additions and 0 deletions

View File

@ -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 {