usb: musb: set target address for non-multipoint devices
Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
8dd7a23007
commit
93ceb4790d
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue