Description
Describe the bug
After upgrading the Linux kernel from 6.12.32 to 6.12.33, USB storage devices no longer function when connected to the OTG port using the dwc2 driver. Possibly related to recent changes in dwc2.
Steps to reproduce the behaviour
Boot kernel 6.12.33 with dwc2 enabled.
Plug in a USB flash drive to the OTG port.
Observe dmesg and /dev/ for device activity.
Compare behavior with kernel 6.12.32.
Device (s)
Raspberry Pi CM5 Lite
System
Model: Raspberry Pi CM5 / Custom IO Board
OS: Debian 12 Bookworm
USB port used: OTG port
Driver in use: dwc2, Device operates in host mode; not using gadget functionality.
Kernel versions:
Working: 6.12.32
Broken: 6.12.33
Additional context
Expected Behavior:
When a USB storage device is plugged into the OTG port, it should enumerate and mount as a block device (e.g., /dev/sda), as it did under 6.12.32.
Actual Behavior:
Under 6.12.33, plugging in a USB storage device results in:
No enumeration
No device node (/dev/sdX) created
config.txt
[pi3]
#dtoverlay=clockworkpi-devterm-cm3
dtoverlay=clockworkpi-uconsole-cm3
dtoverlay=vc4-kms-v3d
dtparam=spi=on
dtoverlay=spi-gpio35-39
gpio=11=op,dh
enable_uart=1
[pi4]
#dtoverlay=clockworkpi-devterm
dtoverlay=clockworkpi-uconsole
dtoverlay=vc4-kms-v3d-pi4,cma-384
dtparam=spi=on
enable_uart=1
[pi5]
#dtoverlay=clockworkpi-devterm-cm5
dtoverlay=clockworkpi-uconsole-cm5
dtoverlay=vc4-kms-v3d-pi5,cma-384
dtparam=pciex1=off
dtparam=uart0
[all]
ignore_lcd=1
max_framebuffers=2
disable_overscan=1
dtparam=audio=on
dtoverlay=audremap,pins_12_13
dtoverlay=dwc2,dr_mode=host
dtparam=ant2