From 850e96577c5e64452425094b55d80f1a050b9978 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sat, 2 Mar 2024 13:14:58 +0800 Subject: [PATCH] fix missing bus in sunxi --- port/musb/usb_hc_musb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;