Re: [PATCH v1 4/4] usb: serial: mxuport: add sysfs control for UART FIFO
From: Johan Hovold
Date: Thu May 07 2026 - 11:59:19 EST
On Tue, Mar 24, 2026 at 11:50:41AM +0800, Crescent Hsieh wrote:
> Add a per-port sysfs attribute, uart_fifo, to allow userspace to enable
> or disable the UART FIFO at runtime.
Why would you want to do that?
We should try to avoid driver specific sysfs knobs.
> Map the requested state to the RQ_VENDOR_SET_FIFO_DISABLE vendor command
> and track the current FIFO setting in the per-port private data.
>
> Initialize the FIFO state during port probe and remove the sysfs
> attribute when the port is released.
Johan