summaryrefslogtreecommitdiff
path: root/src/host
AgeCommit message (Collapse)Author
2025-11-27usbh: detach existing device first if an attach event is receivedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-26usbh: watch hub status before driver configHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-26usbh: Stop enumeration gracefully if EP0 can't be openHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-11-07fix more alerts found by pvs-studiohathach
2025-11-03fix more warnings/alertshathach
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-09-18set driver count to 0HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12ehci: fix removed qhd get reusedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Fix some IAR warningsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-06-30Merge branch 'master' into fork/HiFiPhile/async_iohathach
2025-06-22Merge branch 'master' into async_ioHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-06-20usbh make TU_API_SYNC() public, to implement sync() API, change return of ↵hathach
sync API from uint8_t to tusb_xfer_result_t
2025-06-18usbh: add new API tuh_descriptor_get_device_local()hathach
cdc host: remove the local desc_dev and the get_device descriptor call for ftdi and pl2303
2025-06-09Fix TUH_EPSIZE_BULK_MPS macroCédric Berger
TUH_EPSIZE_BULK_MPS should be set based on TUH_OPT_HIGH_SPEED, not TUD_OPT_HIGH_SPEED
2025-05-21add usbh_spin_lock/unlock() use spinlock instead of atomic flag for hcd max3421hathach
2025-05-13fix dual example for rp2350 conflict printf and cdc_printfhathach
2025-05-13fix warnings, minor clean uphathach
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-04-29define hcd_devtree_info_t forr backward compatiblehathach
2025-04-29add enum for set addr recoveryhathach
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-21improve usbh stability with failed setup send, prevent control stage locked outhathach
2025-04-18Fix usbh racing later.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-18Merge branch 'master' into dwc2-proper-attach-debouncingHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-18enum For string descriptor (langid, manufacturer product, serila): always ↵hathach
get the first 2 bytes to determine the length first. otherwise, some device may have buffer overflow.
2025-04-11Merge remote-tracking branch 'upstream/master' into async_ioHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-11dwc2/host: attach debouncing fixesMaxime Vincent
2025-04-03fix(hcd) hcd_edpt_open() return true if endpoint is already opened.hathach
2025-03-26hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement ↵hathach
hcd_edpt_close()
2025-03-25add tuh_edpt_close() API, it will abort any pending transferhathach
implement hcd_edpt_close() for pio-usb and max3421e, also move max3421e api into its own header.
2025-03-24host: add tuh_enum_descriptor_device_cb() and ↵hathach
tuh_enum_descriptor_configuration_cb() callback host: support device with multiple configurations
2025-03-21enable hil dual for metro m4 with max3421hathach
2025-03-06hack: force/overwrite endpoint mps to 64 for device that incorrectly report ↵hathach
512 bytes for bulk in fullspeed mode.
2025-03-05Merge branch 'master' into fork/atoktoto/midihosthathach
# Conflicts: # src/host/usbh.c