镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

usb: dwc2: masquerade split-interrupt transfers - #6936

Merged
pelwell merged 2 commits into
raspberrypi:rpi-6.12.yfrom
P33M:dwc2_masquerade
Jul 8, 2025
Merged

pelwell merged 2 commits into
raspberrypi:rpi-6.12.yfrom
P33M:dwc2_masquerade

Conversation

@P33M

@P33M P33M commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

Second attempt at porting the dwc_otg hack to avoid dropped split transactions.

Transactions now "look OK" on the bus analyser but this needs more soak testing with different hub implementations.

@P33M
P33M marked this pull request as ready for review July 8, 2025 09:21
P33M added 2 commits July 8, 2025 13:16
Masquerading Interrupt split transfers as Control puts the transfer into
the non-periodic handler in the hub. This stops the hub dropping
complete-split data in the microframe after a CSPLIT should have
arrived, improving resilience to host IRQ latency. Devices are none
the wiser - the handshake tokens are the same.

Originally devised by Hans Petter Selasky @ FreeBSD.

(v2: dwc2 needs an un-masquerade prior to channel interrupt handling)

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
Control Setup phase transfers needs an 8 byte maxpacket override, or
drivers doing a GET with a small buffer as a split transaction would
cause broken transfers.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
@P33M
P33M force-pushed the dwc2_masquerade branch from 9d4c59b to fbd7bc9 Compare July 8, 2025 12:16
@pelwell

pelwell commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

GitHub notifications about status changes and pushes are hit and miss.

@pelwell
pelwell merged commit 3829e1b into raspberrypi:rpi-6.12.y Jul 8, 2025
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jul 11, 2025
kernel: Add support for phy interrupts on BCM54213PE
See: raspberrypi/linux#6942

kernel: usb: dwc2: masquerade split-interrupt transfers
See: raspberrypi/linux#6936
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jul 11, 2025
kernel: Add support for phy interrupts on BCM54213PE
See: raspberrypi/linux#6942

kernel: usb: dwc2: masquerade split-interrupt transfers
See: raspberrypi/linux#6936
sairon added a commit to home-assistant/operating-system that referenced this pull request Aug 14, 2025
Raspberry Pi Linux update to 6.12.34 broken some USB devices, mostly USB-Serial
converters connected to Yellow, but there are reports of some other peripherals
connected to RPi boards too.

This is a known RPi upstream issue [1] fixed by a PR [2] that's not been merged
to RPi stable kernel yet. Applying patches from this PR fixes the issues.

Fixes #4228, refs #4229

[1] raspberrypi/linux#6941
[2] raspberrypi/linux#6936
sairon added a commit to home-assistant/operating-system that referenced this pull request Aug 14, 2025
Raspberry Pi Linux update to 6.12.34 broken some USB devices, mostly USB-Serial
converters connected to Yellow, but there are reports of some other peripherals
connected to RPi boards too.

This is a known RPi upstream issue [1] fixed by a PR [2] that's not been merged
to RPi stable kernel yet. Applying patches from this PR fixes the issues.

Fixes #4228, refs #4229

[1] raspberrypi/linux#6941
[2] raspberrypi/linux#6936
mahabubul470 pushed a commit to my-smart-homes/operating-system that referenced this pull request Dec 23, 2025
Raspberry Pi Linux update to 6.12.34 broken some USB devices, mostly USB-Serial
converters connected to Yellow, but there are reports of some other peripherals
connected to RPi boards too.

This is a known RPi upstream issue [1] fixed by a PR [2] that's not been merged
to RPi stable kernel yet. Applying patches from this PR fixes the issues.

Fixes home-assistant#4228, refs home-assistant#4229

[1] raspberrypi/linux#6941
[2] raspberrypi/linux#6936
pavliha added a commit to aircast-one/aircast-pi-gen that referenced this pull request Mar 15, 2026
Upgrade kernel packages (>= 6.12.35) during image build to include the
DWC2 split-interrupt masquerade fix (raspberrypi/linux#6936). This is
the proper kernel-level fix for high-speed USB issues with Cube Orange
flight controllers on Pi Zero 2W.

- Revert cmdline.txt autosuspend workaround (kernel fix is sufficient)
- Keep udev rules as defense-in-depth for flight controller USB stability
@jose1711

Copy link
Copy Markdown

Related: #7282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants