|
|
Log in / Subscribe / Register

USB: serial: mxuport: add MUX50U support and updates

From:  Crescent Hsieh <crescentcy.hsieh-AT-moxa.com>
To:  Johan Hovold <johan-AT-kernel.org>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>
Subject:  [PATCH v2 0/4] USB: serial: mxuport: add MUX50U support and updates
Date:  Tue, 23 Jun 2026 16:01:35 +0800
Message-ID:  <20260623080138.166398-2-crescentcy.hsieh@moxa.com>
Cc:  linux-usb-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, FangpingFP.Cheng-AT-moxa.com, Epson.Chiang-AT-moxa.com, Crescent Hsieh <crescentcy.hsieh-AT-moxa.com>
Archive-link:  Article

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-cresc...

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



Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds