From: Bryan Wu Date: Mon, 9 Aug 2010 22:41:12 +0000 (-0400) Subject: usb: musb: set target address for non-multipoint devices X-Git-Tag: v2010.09-rc2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=93ceb4790d8daea992cdebf2c75434d73df9c028;p=u-boot usb: musb: set target address for non-multipoint devices Signed-off-by: Bryan Wu Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger --- diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index f14e12ffaf..af989aa78d 100644 --- a/drivers/usb/musb/musb_hcd.c +++ b/drivers/usb/musb/musb_hcd.c @@ -917,6 +917,13 @@ int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer, dev->status = 0; dev->act_len = len; + +#ifdef MUSB_NO_MULTIPOINT + /* Set device address to USB_FADDR register */ + if (setup->request == USB_REQ_SET_ADDRESS) + writeb(dev->devnum, &musbr->faddr); +#endif + return len; }