Repository navigation
Description
Describe the bug
Using a Raspberry Pi 4B in a DeskPi Pro case, which uses /dev/ttyUSB0 for fan control and power button status amongst other things, the /dev/ttyUSB0 device is no longer being created after a kernel update from 6.12.25 to 6.12.34.
Kernel driver used for the case is CH341.
Running dmesg on the 6.12.25 kernel I get:
[ 4.294130] usbcore: registered new interface driver ch341
[ 4.294176] usbserial: USB Serial support registered for ch341-uart
[ 4.294221] ch341 3-1.4:1.0: ch341-uart converter detected
[ 4.295141] usb 3-1.4: ch341-uart converter now attached to ttyUSB0
Updating the kernel to 6.12.34 on the same device I now get:
[ 3.503324] usbcore: registered new interface driver ch341
[ 3.503368] usbserial: USB Serial support registered for ch341-uart
[ 3.503414] ch341 3-1.4:1.0: ch341-uart converter detected
[ 3.503602] ch341-uart ttyUSB0: probe with driver ch341-uart failed with error -32
This is repeatable whenever I change between these two kernel versions on the same hardware platform.
Steps to reproduce the behaviour
Update the kernel to 6.12.34 from 6.12.25 and the attached CH341 device no longer works.
Device (s)
Raspberry Pi 4 Mod. B
System
DietPi 9.14.2
vcgencmd version
Apr 30 2025 13:33:52
Copyright (c) 2012 Broadcom
version 5560078dcc8591a00f57b9068d13e5544aeef3aa (clean) (release) (start_cd)
uname -a
Good: Linux test 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
Bad: Linux test 6.12.34+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1~bookworm (2025-06-26) aarch64 GNU/Linux
Logs
Good (6.12.25):
[ 4.294130] usbcore: registered new interface driver ch341
[ 4.294176] usbserial: USB Serial support registered for ch341-uart
[ 4.294221] ch341 3-1.4:1.0: ch341-uart converter detected
[ 4.295141] usb 3-1.4: ch341-uart converter now attached to ttyUSB0
Bad (6.12.34):
[ 3.503324] usbcore: registered new interface driver ch341
[ 3.503368] usbserial: USB Serial support registered for ch341-uart
[ 3.503414] ch341 3-1.4:1.0: ch341-uart converter detected
[ 3.503602] ch341-uart ttyUSB0: probe with driver ch341-uart failed with error -32
Additional context
No response
Activity
ceisserer commentedon Jul 6, 2025
same here on a RPI3, I filed a report after this one and closed it as duplicate: #6944
Using dtoverlay=dwc2 I also get errors in log of other usb devices (pl2303 serial converter, FTDI serial converter) that normally work without any issues/noise:
[ 12.083475] usbcore: registered new interface driver usbserial_generic
[ 12.083548] usbserial: USB Serial support registered for generic
[ 12.149753] usbcore: registered new interface driver pl2303
[ 12.149868] usbserial: USB Serial support registered for pl2303
[ 12.150577] pl2303 1-1.2.3:1.0: pl2303 converter detected
[ 12.164336] usb 1-1.2.3: pl2303 converter now attached to ttyUSB0
[ 12.165163] usbcore: registered new interface driver ftdi_sio
[ 12.165253] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 12.165444] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[ 12.165595] usb 1-1.3: Detected FT232R
[ 12.169624] ftdi_sio ttyUSB1: Unable to read latency timer: -121
[ 12.179540] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB1
[ 12.200360] usbcore: registered new interface driver ch341
[ 12.200474] usbserial: USB Serial support registered for ch341-uart
[ 12.200586] ch341 1-1.5:1.0: ch341-uart converter detected
[ 12.206143] usb 1-1.5: failed to receive control message: -121
[ 12.206187] ch341-uart ttyUSB2: probe with driver ch341-uart failed with error -121
...............
[ 19.944513] r8152 1-1.2.1:1.0 eth1: carrier on
[ 31.564230] pl2303 1-1.2.3:1.0: pl2303_vendor_read - failed to read [000a]: -32
[ 31.566134] pl2303 1-1.2.3:1.0: pl2303_vendor_read - failed to read [000a]: -32
[ 43.319936] pl2303 1-1.2.3:1.0: pl2303_vendor_read - failed to read [000a]: -32
So it seems the usb subsystem somehow is generally broken.
P33M commentedon Jul 6, 2025
Please try
sudo rpi-update pulls/6936which contains a possible fix for this issue. Be sure to have some way of recovering the system if the update goes awry.986ster commentedon Jul 6, 2025
It didn't make any difference for me. /dev/ttyUSB0 is still missing after updating from 6.12.25 to 6.12.34, and this 6.12.35 build hasn't brought it back.
P33M commentedon Jul 7, 2025
Works for me - are you sure you added the branch as an argument to rpi-update?
986ster commentedon Jul 7, 2025
$ uname -a
Linux raspberrypi 6.12.35-v8+ #1 SMP PREEMPT Fri Jul 4 14:09:58 UTC 2025 aarch64 GNU/Linux
$ dmesg | grep usbserial
$ lsusb
Bus 002 Device 005: ID 059f:108c LaCie, Ltd Rugged USB-C
Bus 002 Device 004: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 20b1:0002 XMOS Ltd Peachtree 24/192 USB X
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I can't quickly swap between 6.12.25 and 6.12.35 on this box, but the serial device at /dev/ttyUSB0 was there on 6.12.25 before I upgraded, so it's not seeing it whatsoever in this latest version.
P33M commentedon Jul 7, 2025
Please post the full dmesg output for 6.12.35.
986ster commentedon Jul 7, 2025
P33M commentedon Jul 7, 2025
I assume the Deskpi Pro provides both power and USB2 connectivity via the USB-C port. There's no messages referring to dwc2, even for the root port, and I would expect some.
Please add the line
dtoverlay=dwc2,dr_mode=hostto/boot/firmware/config.txtif not already present and report the output of dmesg for the working case (6.12.25).986ster commentedon Jul 7, 2025
Here's dmesg from a DietPi instance running 6.12.25 on the same box. That may help with identifying how the additional USB hub is connecting:
The
dtoverlay=dwc2,dr_mode=hostline is already in the config file, so I'll probably have to build a fresh Raspberry Pi OS build to get the dmesg from a 6.12.25 instance with this case hardware.986ster commentedon Jul 7, 2025
Here's dmesg from Raspberry Pi OS running 6.12.25, where the serial driver works:
986ster commentedon Jul 8, 2025
I cloned my 6.12.25 instance and upgraded it to 6.12.34, and then immediately upgraded that to 6.12.35 before I rebooted.
Going that route worked just fine.
It seems that the drivers for this case don't play quite as well with Raspberry Pi OS as they do with DietPi, but at least this latest kernel version is finally working with it, so that bodes well for DietPi also working once this is merged and released.
986ster commentedon Jul 14, 2025
Do you know typically how long this might take to make it into the a released kernel version?
popcornmix commentedon Jul 14, 2025
Unfortunately there was an apt kernel update a week ago that just missed this fix.
No scheduled date for the next apt update, but we'll keep this issue in mind and keep an eye out for other issues that might increase priority of another kernel bump.
Baelzvuv commentedon Aug 14, 2025
I ran into what appears to be the same issue with the Deskpi Lite case.. haven't updated the systems in a while, and just randomly updated a couple days ago. After the updates the power button and shutdown functions stopped working, after a bit of debugging it seems the ttyUSB0 stopped working.. so the Pi4 can't communicate with the MCU on the deskpi lite anymore, to send the power off request.
user@raspberrypi:/bin $ dmesg|grep ttyUSB*
[ 7.399536] ch341-uart ttyUSB0: probe with driver ch341-uart failed with error -32
https://github.com/DeskPi-Team/deskpi_v1
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/safe_shutdown.py", line 13, in
ser = serial.Serial('/dev/ttyUSB0', baudrate=9600, timeout=10)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in init
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Backport patches for Raspberry Pi dwc2 driver
Backport patches for Raspberry Pi dwc2 driver (#4231)
yoyojacky commentedon Aug 20, 2025
I have met the same issue about the CH341 serial chip on my deskpi lite case .


My device is Raspberry Pi 4B 8GB RAM version.
OS: 2025-05-13 hte latest one.
when I check the device via
dmesg | grep ch34, I'v got this :but I check the module status:
Is anybody can submit this issue to raspberry pi official tech team? please fix this bug ~
P33M commentedon Aug 20, 2025
The bug is fixed, and the fix is present in the latest packages in Raspberry Pi OS. The update schedules of other operating systems are beyond our control.
986ster commentedon Aug 21, 2025
Which kernel version is in general release with this fix?
yoyojacky commentedon Sep 4, 2025
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.12.34+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.34-1+rpt1
bookworm (2025-06-26) aarch64 GNU/Linux$ lsb_release -api@raspberrypi:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
pi@raspberrypi:~ $
pi@raspberrypi:~ $ dmesg |grep ch34
[ 5.226991] usbcore: registered new interface driver ch341
[ 5.227074] usbserial: USB Serial support registered for ch341-uart
[ 5.227143] ch341 3-1.4:1.0: ch341-uart converter detected
[ 5.227802] ch341-uart ttyUSB0: probe with driver ch341-uart failed with error -32
still the same, I have downloaded the latest release and flashed it to my TF card ( OS from Raspberry Pi official website)
Could you please tell me how to fix this?
pelwell commentedon Sep 4, 2025
@yoyojacky The title of the issue is "6.12.34 breaks CH341 driver", and you are reporting that you are running 6.12.34 and it isn't working. That's not a surprise.
We're looking to make another stable release of the kernel in the next week or so, at which point the apt kernel package will be updated. However, there may not be another full Bookworm image, given that we're so close to Trixie.
yoyojacky commentedon Sep 5, 2025
Oh, thank you so much for the heads-up! I'm now really looking forward to the Trixie release—can't wait for it to drop. Have a nice day!
986ster commentedon Sep 15, 2025
@pelwell Is there any progress on this? I'd really like to get back on the mainstream kernel as this broken one has been out there in the wild for several months now already.
ceisserer commentedon Sep 18, 2025
Too be honest, I am quite puzzled how long it takes to deploy that fix - my PI has now 75 days uptime and the last reboot was performed because the mentioned kernel update broke my setup (and many others).
ch341 devices are quite common - and keeping in mind that I also see warnings with other usb-serial converters, I think it is safe to assume the dwc2 stack has been broken in general with some serious issue.
986ster commentedon Sep 18, 2025
They released it yesterday, but it appears to only be for Trixie, so Bookworm users are left with a broken kernel.
popcornmix commentedon Sep 19, 2025
Updated kernel is on our internal apt repo for bookworm - it will be pushed to public soon (assuming no regressions are reported from public trixie or internal bookworm testing).
Backport patches for Raspberry Pi dwc2 driver (home-assistant#4231)