[PATCH v2 0/4] USB: serial: mxuport: add MUX50U support and updates

From: Crescent Hsieh

Date: Tue Jun 23 2026 - 04:05:16 EST


This series updates the mxuport driver to support MUX50U-based devices
and fixes a few device-specific runtime behaviours.

The first two patches clean up firmware version handling and add support
for UPort G2 and Platform UART devices. The firmware family is encoded in
the USB device-id table so that the table remains the single source for
both port count and firmware handling policy.

The third patch adds SEND_NEXT handling to pace host-to-device
transmission. The fourth patch adds RS485 mode configuration through the
standard TIOCSRS485/TIOCGRS485 interface.

Changes in v2:
- [PATCH v1 1/4]:
Split into [PATCH v2 1/4] and [PATCH v2 2/4]. Clean up firmware
version parsing and printing in the first patch, and move MUX50U
device support to the second patch. Encode the firmware family in
the USB device-id table and use the system-register remap state for
the MUX50U firmware download decision.
- [PATCH v1 2/4]:
Moved to [PATCH v2 3/4]. Add mxuport-specific write(), write_start(),
and write_bulk_callback() paths so SEND_NEXT can stop and resume
transmission without returning zero from prepare_write_buffer().
Drop the open-time FIFO flush.
- [PATCH v1 3/4]:
Moved to [PATCH v2 4/4]. Clear unsupported serial_rs485 flags and
fields, cache the sanitized configuration, and protect it with the
per-port mutex.
- [PATCH v1 4/4]:
Drop the UART FIFO sysfs interface from this revision.

v1: https://lore.kernel.org/all/20260324035041.352190-1-crescentcy.hsieh@xxxxxxxx/

Crescent Hsieh (4):
USB: serial: mxuport: clean up firmware version handling
USB: serial: mxuport: add MUX50U-based device support
USB: serial: mxuport: handle SEND_NEXT transmit flow control
USB: serial: mxuport: support RS485 mode configuration

drivers/usb/serial/mxuport.c | 514 ++++++++++++++++++++++++++++++++---
1 file changed, 470 insertions(+), 44 deletions(-)

--
2.43.0