summaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/musb_hcd.c')
-rw-r--r--drivers/usb/musb/musb_hcd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c
index f14e12f..af989aa 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;
}