Skip to content

Commit

Permalink
fix missing bus in sunxi
Browse files Browse the repository at this point in the history
  • Loading branch information
sakumisu committed Mar 2, 2024
1 parent 384b11e commit 850e965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion port/musb/usb_hc_musb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 850e965

Please sign in to comment.