Commit Graph

4326 Commits

Author SHA1 Message Date
hathach
1b888a3311 clean up, remove halted_sof_schedule flags since channel_xfer_in_retry() is only called when channel is halted. 2025-04-18 16:17:35 +07:00
HiFiPhile
b6abc9022a Merge remote-tracking branch 'upstream/master' into hcd-template-comments
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 11:13:15 +02:00
HiFiPhile
7134109973 Update hcd_edpt_open() note.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-18 11:12:14 +02:00
hathach
e8a84f9076 enum For string descriptor (langid, manufacturer product, serila): always get the first 2 bytes to determine the length first. otherwise, some device may have buffer overflow. 2025-04-18 10:53:12 +07:00
hathach
b1eedf4d1d fix iar make build with wb and u5 2025-04-17 14:40:43 +07:00
Joel Michael
0d2c08efd7 note potential issues using ep_desc in hcd_edpt_open() 2025-04-16 20:26:35 +10:00
Maxime Vincent
62d06e7b19 dwc2/host: fix all retry intervals
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-15 09:07:48 +02:00
Maxime Vincent
384e191fdc dwc2/host: immediately retry IN token for bInterval=1
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-15 09:01:39 +02:00
Maxime Vincent
cea2c97248 Merge branch 'master' into dwc2-host-fix-disconnect 2025-04-15 09:00:16 +02:00
Ha Thach
bfe08176e5 Merge pull request #3070 from HiFiPhile/bitfield
host/dwc2: fix bitfields access width
2025-04-15 10:44:01 +07:00
hathach
d039d54a89 channge DWC2_CHANNEL_COUNT/DWC2_EP_COUNT to inline function 2025-04-14 23:45:20 +07:00
HiFiPhile
b2a4407bd5 Merge remote-tracking branch 'upstream/master' into h7rs 2025-04-12 17:08:49 +02:00
HiFiPhile
6689a0142d Merge pull request #3079 from byteit101/version-string-fix
Fix version string to actually be the version
2025-04-12 16:41:04 +02:00
HiFiPhile
af0c47e06e Fix typo
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-12 15:21:42 +02:00
HiFiPhile
aecfd3433c Fix handle_hprt_irq
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-12 13:36:54 +02:00
Patrick Plenefisch
937b07cdc0 Fix version string to actually be the version 2025-04-11 18:19:39 -04:00
HiFiPhile
459e2cd39e Merge remote-tracking branch 'upstream/master' into async_io
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-11 23:07:22 +02:00
HiFiPhile
925010fd84 host/dwc2: resume OUT transfer when PING ACKed
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-11 17:18:36 +02:00
Maxime Vincent
2064ee470d dwc2/host: attach debouncing fixes 2025-04-11 12:26:36 +02:00
Maxime Vincent
72357cdb20 dwc2/host: HFIR: Fix timing off-by-one 2025-04-11 12:20:24 +02:00
HiFiPhile
2aff61ccb3 Fix CI.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-09 19:40:03 +02:00
HiFiPhile
084c0802c3 dwc2: refactor bitfields.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-04-09 19:34:56 +02:00
Maxime Vincent
6607b76c76 dwc2/host: remove hcd_event_device_remove() call from handle_hptr_irq to prevent double removal
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-08 14:34:21 +02:00
Maxime Vincent
7d8433abab dwc2/host: enable disconnect interrupt + handle it
Signed-off-by: Maxime Vincent <maxime@veemax.be>
2025-04-07 11:36:06 +02:00
HiFiPhile
42213eff2b Merge pull request #3063 from maximevince/dwc2-host-fix-sof-flag
dwc2/host: clear SOF flag in handle_sof_irq()
2025-04-06 14:05:28 +02:00
Maxime Vincent
255ccf26ea dwc2/host: clear SOF flag in handle_sof_irq() 2025-04-04 14:21:20 +02:00
hathach
4787cd5f54 fix(hcd) hcd_edpt_open() return true if endpoint is already opened. 2025-04-03 18:11:33 +07:00
Ha Thach
8c1802e41d Merge pull request #3043 from hathach/hcd-close-ep
feat(host) add endpoint close API and feat(HIL) improvement
2025-03-27 10:47:10 +07:00
hathach
e511d00f34 added hcd_edpt_close() stub for other ports 2025-03-26 22:11:44 +07:00
hathach
901ce2ad93 hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement hcd_edpt_close() 2025-03-26 21:32:18 +07:00
hathach
65e01fff2e add tuh_edpt_close() API, it will abort any pending transfer
implement hcd_edpt_close() for pio-usb and max3421e, also move max3421e api into its own header.
2025-03-25 16:15:58 +07:00
HiFiPhile
3caff80c8e Merge remote-tracking branch 'upstream/master' into h7rs
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-03-24 21:09:17 +01:00
hathach
db537861b2 device cdc: rename tud_cdc_configure_fifo/_t to tud_cdc_configure/_t
add tx_overwritabe_if_not_connected for cdc driver configure
2025-03-24 22:58:21 +07:00
hathach
9f541a3d96 host: add tuh_enum_descriptor_device_cb() and tuh_enum_descriptor_configuration_cb() callback
host: support device with multiple configurations
2025-03-24 22:55:04 +07:00
rppicomidi
3324a327cb Fix #3033: address review comment 2025-03-21 07:14:10 -07:00
rppicomidi
b0def52f45 Move misplaced statement 2025-03-21 07:13:01 -07:00
hathach
e54753814b enable hil dual for metro m4 with max3421 2025-03-21 00:11:18 +07:00
rppicomidi
4b46493cb4 Fix #3033: Increase array bounds and test for overflow 2025-03-20 06:27:23 -07:00
rppicomidi
05e4f8b777 Move iInterface per review comment 2025-03-19 05:57:01 -07:00
rppicomidi
62f00bdf5d Fix compiler conversion error warning 2025-03-18 07:42:47 -07:00
rppicomidi
5ecea4eefe fix tuh_midi_itf_get_info() desc->iInterface value 2025-03-18 07:41:49 -07:00
rppicomidi
31b3a2f63b Fix 3031: implement tuh_midi_itf_get_info() 2025-03-17 07:41:51 -07:00
verylowfreq
cd2b3a5321 Fix interupt, LowSpeed switching and rename 2025-03-16 10:13:26 +09:00
verylowfreq
9ca4bc89a7 Update hcd_init() signature. Add osal_task_delay() implementation for none os. 2025-03-16 10:13:26 +09:00
verylowfreq
426588d947 Fix for timing, timeout, and device switching issues 2025-03-16 10:13:26 +09:00
verylowfreq
7ed5503a5c Fix the condition related to CFG_TUH_WCH_USBIP_USBFS macro 2025-03-16 10:13:25 +09:00
hathach
879f78a91d fix pre-commmit 2025-03-16 10:13:25 +09:00
verylowfreq
dc3e6a59a9 Repeat xfer on USB_PID_OUT if data is larger than MaxPacketSize 2025-03-16 10:13:25 +09:00
verylowfreq
c61dfc7c7a Add ch32v20x usbfs hcd initial support. 2025-03-16 10:13:25 +09:00
HiFiPhile
585bcbfcdd Fix 2 IAR warnings.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-03-16 00:07:15 +01:00