summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
23 hoursfix(security): check array overflowdevsakumisu
Signed-off-by: sakumisu <[email protected]>
4 daysfix(security): check msc block sizeHEADmastersakumisu
Signed-off-by: sakumisu <[email protected]>
4 daysfeat(class/gs_usb): add gs usb driversakumisu
Signed-off-by: sakumisu <[email protected]>
9 daysupdate(class): for all net classes, goto delete when urb fail, do not retry ↵sakumisu
find class Signed-off-by: sakumisu <[email protected]>
9 daysfix(port/ehci): fix killed to zero by 6c40a28302sakumisu
Signed-off-by: sakumisu <[email protected]>
9 dayschore(ci): change toolchain pathsakumisu
Signed-off-by: sakumisu <[email protected]>
9 daysfix(port/ehci): fix urb transfer_buffer invalid for controlsakumisu
Signed-off-by: sakumisu <[email protected]>
12 daysupdate(port/dwc2/gd): add gd reg patch, all todosakumisu
Signed-off-by: sakumisu <[email protected]>
12 daysfix(class/hub): fix mq delete twicesakumisu
Signed-off-by: sakumisu <[email protected]>
12 daysfix(class/cdc/usbd_cdc_ecm): read & write only after host sends set_interfacesakumisu
Signed-off-by: sakumisu <[email protected]>
13 daysupdate(phytium): update phytium port and cisakumisu
Signed-off-by: sakumisu <[email protected]>
13 daysdocs: update version rstsakumisu
Signed-off-by: sakumisu <[email protected]>
13 daysfix(port/dwc2/usb_dc_dwc2): do not disable out ep, only with nak when reset ↵sakumisu
or deinit Signed-off-by: sakumisu <[email protected]>
14 daysupdate(platform/rtthread): switch to adb sh in shell open, add vfs dfs portsakumisu
Signed-off-by: sakumisu <[email protected]>
14 daysfix(port/dwc2/usb_dc_dwc2): revert out data_len caculationsakumisu
Signed-off-by: sakumisu <[email protected]>
14 daysupdate(class/tmc): update tmc out process, read all with ↵sakumisu
dev_dep_msg_out.transferSize Signed-off-by: sakumisu <[email protected]>
14 daysfix(class/msc): discard data when read-only enabledMDLZCOOL
Signed-off-by: MDLZCOOL <[email protected]>
2026-10-09fix(platform/rtthread): fix build error and make rtthread usbd adb shell runMDLZCOOL
Signed-off-by: MDLZCOOL <[email protected]>
2026-10-09fix(class/adb): add missing case breakMDLZCOOL
Signed-off-by: MDLZCOOL <[email protected]>
2026-10-08fix(port/musb): Use the mapped channel in usbh_kill_urb on SiFli 52/56zelong_666
usbh_kill_urb() derived both the channel to mask and the channel to flush from the endpoint number ((urb->ep->bEndpointAddress & 0x0f) and bEndpointAddress itself), which only holds when the channel number equals the endpoint number. When MUSB_SIFLI_EP_MAP is in use the channel is assigned by sifli_ep_map_alloc(): the SiFli 52/56 host channels are pooled per direction (IN ch1..ch4, OUT ch5..ch7), so e.g. EP1 OUT lives on ch5 and EP2 OUT on ch6. Masking by endpoint number therefore clears the interrupt enable of an unrelated channel and leaves the aborted channel's interrupt armed, and musb_fifo_flush() is asked to clean the FIFO of a different endpoint than the one the URB was using. Take the channel from pipe->chidx, which is the channel the URB was submitted on, and rebuild the byte musb_fifo_flush() expects (direction in bit7, channel in bits 6:0). Non-mapped MUSB ports keep their previous behaviour. EP0 is unaffected either way: with chidx 0 and bEndpointAddress 0 both forms resolve to bit 0 and byte 0.
2026-10-08fix(port/musb): Re-arm the EP0 TX interrupt in musb_control_urb_initzelong_666
The data channels re-arm their interrupt enable in their own musb_bulk_urb_init()/musb_intr_urb_init()/musb_iso_urb_init(), but the EP0 path never did: TXIE.EP0 was only ever set once, in usb_hc_init(). usbh_kill_urb() masks the interrupt of the channel that owns the abandoned URB, and EP0 always lives on channel 0, so aborting a single control transfer clears TXIE.EP0 for good. Every later control transfer then completes in the hardware but never raises an EP0 interrupt, so usbh_submit_urb() runs into errout_timeout (-USB_ERR_TIMEOUT) and enumeration can never succeed again until the next usb_hc_init(). Seen on a host that lost its peer in the middle of enumeration (phone reboot or re-plug): one control transfer timed out during the port reset and every following one repeated "Failed to get device descriptor, errorcode:-14" forever, until the board was rebooted. Arming TXIE.EP0 here keeps EP0 symmetric with the data channels, so a single timed-out control transfer no longer disables EP0 for the rest of the session.
2026-10-06chore: add adb into buildsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-10-06docs: update adb rstsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-10-06fix(port/dwc2/usb_dc_dwc2): fix usbd_ep_close for out ep, set global nak ↵sakumisu
first then can disable ep, refs: #462 Signed-off-by: sakumisu <[email protected]>
2026-10-06refactor(class/adb): refactor adb device, add shell & sync servicesakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-30fix(osal/idf): fix xSemaphoreCreateCounting args in usb_osal_sem_create_countingMDLZCOOL
2026-09-26update(class/serial): check erorcode when readsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-26update(port): change low level api from weak to extern, users must implement ↵sakumisu
this Signed-off-by: sakumisu <[email protected]>
2026-09-26feat: add register driver api, support multi host & device with different ipsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-23fix(port): safely check urb->hcpriv validation in usbh_kill_urbsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-22style: fix formatsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-21fix(osal/usb_osal_rtthread): fix thread delete for rtt version < 4.0sakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-21chore(ci): fix to use the latest usb reposakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-21fix(port/musb): Fix EP1 channel conflict on SiFli 52/56 serieszelong_666
On the SiFli 52/56 series the MUSB host channels are direction-limited (ch2-ch4 are IN-only, ch5-ch7 are OUT-only, ch1 can do both; ch0 is EP0), but the first-free channel allocation is direction-blind and can assign a channel that cannot carry the transfer. Allocate channels through a per-direction endpoint map instead: each (direction, endpoint number) pair keeps a dedicated channel from the correct pool while its URBs are in flight, and the slot is freed when the pipe is released. Busy and map-failure collisions are logged. Fixes USB tethering transfer failures with phones whose RNDIS data endpoints are EP1 IN + EP1 OUT (e.g. OPPO) or numbered above 7 (e.g. EP14/EP15; numbers 1-15 all work since they only live in the 4-bit TEP field). The generic musb_pipe_alloc() path is kept for other MUSB ports.
2026-09-21update(class/wireless/usbh_rndis): support Android RNDIS class code ↵zelong_666
(0xEF/0x04/0x01) Android phones expose USB tethering with the RNDIS interface class code 0xEF / subclass 0x04 / protocol 0x01 instead of the standard wireless class 0xE0 / 0x01 / 0x03. Add a matching class info so these devices are probed by the RNDIS class driver and work out of the box.
2026-09-20docs: update rstsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-20chore: add wch & sifli cisakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-20fix(platform/rtthread): fix msc read write return value for rtt version < 5.0sakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-20feat(demo): split config to fs & hs, add other speed descsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-20feat(core/usbd_core): add get speed apisakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-20fix(port/wch): fixed a bugLinks0617
2026-09-20update(port/wch): add NAK retry feature / usbhs controller port add PING ↵Links0617
packet feature
2026-09-18update(port/wch): add device port speed parameter handleLinks0617
2026-09-17docs: update docsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-17add(port/wch): add wch usbfs host controller portLinks0617
2026-09-16update(port): remove ununsed glue, move some glue into manufacturer dirsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-16update(port/wch): remove legacy portsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-16add(port/wch): add wch usbhs host controller portLinks0617
2026-09-13feat(core/usbd_core): add usb3 config & desc & requestsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-09-13feat(class/tmc): make tmc device class opensakumisu
Signed-off-by: sakumisu <[email protected]>