summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2025-05-21remove unused dwc2_critical.hhathach
2025-05-21add usbd_spin_lock/unlock for driver usagehathach
2025-05-21osal_spin skipping lock/unlock when executed in isrhathach
2025-05-20rename osal_critcal to osal_spinlockhathach
add spinlock implementation for most rtos
2025-05-19implement osal critical for none/freertos/pico-sdkhathach
2025-05-19dwc2 only enter critical in isr with multiple core CPUshathach
2025-05-19add osal_critical API() for use with dwc2hathach
2025-05-19fix(dcd): Fixed race condition on device disconnectTomas Rezucha
TinyUSB does not provide any locking means to protect the DCD variables. This can lead to race conditions when the user is trying to submit a transfer while the device is being disconnected. This can cause the device to be in an inconsistent state, leading to a crash or undefined behavior. This commit adds a spin-lock to protect the DCD variables during device disconnect. Closes https://github.com/espressif/esp-idf/issues/9691 Also reported in https://github.com/espressif/esp-usb/pull/131
2025-05-17[stm32] Wait until the PHYC PLL is stableNiklas Hauser
2025-05-16follow up to pr3118, interface also end with IAD. Add more checkshathach
2025-05-16Merge pull request #3118 from ZakDanger/vendor_device_fixHiFiPhile
vendor device open fix for descriptor parsing
2025-05-15Merge branch 'master' into h7rsHiFiPhile
2025-05-15Merge branch 'master' into xfer_closeHiFiPhile
2025-05-15Merge branch 'master' into xfer_closeHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-05-15Fix transfer failed event still queuedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-05-13fix dual example for rp2350 conflict printf and cdc_printfhathach
2025-05-13fix warnings, minor clean uphathach
2025-05-09simplify vendord_open parsing loopHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-05-09revert 'end fix'ZakDanger
2025-05-09revert 'end fix'ZakDanger
2025-05-09vendor device open fix for descriptor parsingZakDanger
2025-05-06add support for usbtmc vendor-spicific command messagesMoritz Scholjegerdes
2025-05-06chore(usbh): change removing_hubs to array instead of bitmaskhathach
2025-05-06usbh: force removed device in the same bus info, before setting address.hathach
usbh: move code around hub: queue status endpoint for detach/remove event
2025-05-04dcd/ci_hs: add vbus charge option.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-29define hcd_devtree_info_t forr backward compatiblehathach
2025-04-29add enum for set addr recoveryhathach
2025-04-29attach debouncing fixed issue with port1 highspeed on imxrthathach
2025-04-28remove the old attach duplicated logic, debouncing skip should take care of it.hathach
2025-04-28usbh: add roothub debounncing flag to ignore attach/remove event on the ↵hathach
roothub that is currently doing debouncing delay
2025-04-24hub check status before get 1st device descriptorhathach
2025-04-24fix buildhathach
2025-04-24refactor hub driver and move port reset on connection change to usbh.hathach
hub: add hub_port_get_status_local(), ignore resp in hub_port_get_status(pot != 0) usbh properly deboucning with hub/rootport accordingly to usb specs, also add 10ms of reset recovery
2025-04-24add tuh_address_set() APIhathach
minor rename and move code around
2025-04-23move usbh ctrl_xfer into usbh_datahathach
2025-04-23rename and expose tuh_bus_info_get() to applicationhathach
2025-04-23rename hcd_devtree_info_t to tuh_bus_info_t, hcd_devtree_get_info to ↵hathach
hcd_bus_info_get streamline bus info to usbh_devies, also replace dev0 (renamed to dev0_bus)
2025-04-22Compile fix.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-22reduce ENUM_DEBOUNCING_DELAY_MS to 200mshathach
replace dev0.enumerating by enumerating_daddr for better clean up on unplugging while enumerating move controller_id & enumerating_daddr into _usbh_data struct
2025-04-22move removing dev0 to process_removing_device()hathach
2025-04-22Also cleanup unaddressed device.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-22Move decouncing delay before USB reset.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-22host: fix enumerate racingHiFiPhile
- if a previous enumeration failed _ctrl_xfer status could stuck, it needs to be cleared before next attempt. - after _dev0.enumerating is reset in hcd_event_handler(), if an attach event arrived before _ctrl_xfer clean up in remove event, a racing condition will happen. Signed-off-by: HiFiPhile <[email protected]>
2025-04-21Merge pull request #3075 from maximevince/dwc2-proper-attach-debouncingHa Thach
dwc2/host: attach debouncing fixes
2025-04-21improve usbh stability with failed setup send, prevent control stage locked outhathach
2025-04-21Merge pull request #3088 from HiFiPhile/intvHa Thach
Fix 1st nak retry one frame shorter.
2025-04-19enable SOF interrupt only if not already enabledHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-18Disable channel properly.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-18- correctly do_ping if received nyet as transfer complete e.g msc 31 byte ↵hathach
command - correctly carry out OUT transfer when PING is ack
2025-04-18Fix usbh racing later.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>