diff options
| author | sakumisu <[email protected]> | 2024-03-02 13:14:58 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-03-02 13:14:58 +0800 |
| commit | 850e96577c5e64452425094b55d80f1a050b9978 (patch) | |
| tree | 8582c3eb4c6523948eb8e7254d644c0a0aee6a65 | |
| parent | 384b11eb8829ceea87ea016ae9796b7da3833205 (diff) | |
fix missing bus in sunxiv1.1.0
| -rw-r--r-- | port/musb/usb_hc_musb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/port/musb/usb_hc_musb.c b/port/musb/usb_hc_musb.c index 6ff0dffa..cf13e931 100644 --- a/port/musb/usb_hc_musb.c +++ b/port/musb/usb_hc_musb.c @@ -459,7 +459,7 @@ int usb_hc_init(struct usbh_bus *bus) HWREGB(USB_BASE + MUSB_DEVCTL_OFFSET) |= USB_DEVCTL_SESSION; #ifdef CONFIG_USB_MUSB_SUNXI - musb_set_active_ep(0); + musb_set_active_ep(bus, 0); HWREGB(USB_BASE + MUSB_IND_TXCSRL_OFFSET) = USB_CSRL0_TXRDY; #endif return 0; @@ -690,6 +690,8 @@ int usbh_kill_urb(struct usbh_urb *urb) bus = urb->hport->bus; + ARG_UNUSED(bus); + flags = usb_osal_enter_critical_section(); pipe = (struct musb_pipe *)urb->hcpriv; |
