diff options
| author | zelong_666 <[email protected]> | 2026-09-20 20:49:08 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-09-21 17:09:45 +0800 |
| commit | bc1683a94a110bebcbff592465b9ec4a5991cae8 (patch) | |
| tree | 47b8ed4f4e80e2855b9961601b8b423de3a3ce8f /SConscript | |
| parent | 82718ad64913f6be1aa57917cf0c192a98335527 (diff) | |
fix(port/musb): Fix EP1 channel conflict on SiFli 52/56 series
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.
Diffstat (limited to 'SConscript')
0 files changed, 0 insertions, 0 deletions
