diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c index a79cd606..bce45093 100644 --- a/port/ehci/usb_hc_ehci.c +++ b/port/ehci/usb_hc_ehci.c @@ -1160,21 +1160,18 @@ int usbh_submit_urb(struct usbh_urb *urb) if (qh == NULL) { return -USB_ERR_NOMEM; } - urb->hcpriv = qh; break; case USB_ENDPOINT_TYPE_BULK: qh = ehci_bulk_urb_init(bus, urb, urb->transfer_buffer, urb->transfer_buffer_length); if (qh == NULL) { return -USB_ERR_NOMEM; } - urb->hcpriv = qh; break; case USB_ENDPOINT_TYPE_INTERRUPT: qh = ehci_intr_urb_init(bus, urb, urb->transfer_buffer, urb->transfer_buffer_length); if (qh == NULL) { return -USB_ERR_NOMEM; } - urb->hcpriv = qh; break; case USB_ENDPOINT_TYPE_ISOCHRONOUS: #ifdef CONFIG_USB_EHCI_ISO diff --git a/port/musb/usb_dc_musb.c b/port/musb/usb_dc_musb.c index ad61fabd..4dd3342c 100644 --- a/port/musb/usb_dc_musb.c +++ b/port/musb/usb_dc_musb.c @@ -113,7 +113,6 @@ struct musb_udc { } g_musb_udc; static volatile uint8_t usb_ep0_state = USB_EP0_STATE_SETUP; -volatile bool zlp_flag = 0; /* get current active ep */ static uint8_t musb_get_active_ep(void) @@ -266,12 +265,6 @@ uint8_t usbd_get_port_speed(uint8_t busid) return speed; } -uint8_t usbd_force_full_speed(const uint8_t port) -{ - HWREGB(USB_BASE + MUSB_POWER_OFFSET) &= ~USB_POWER_HSENAB; - return (HWREGB(USB_BASE + MUSB_POWER_OFFSET) & USB_POWER_HSENAB); -} - int usbd_ep_open(uint8_t busid, const struct usb_endpoint_descriptor *ep) { uint16_t used = 0;