diff options
| author | Crescent Hsieh <crescentcy.hsieh@moxa.com> | 2026-08-11 14:05:01 +0800 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2026-10-15 11:28:49 +0200 |
| commit | d446199711161e35c7f97f1556753c81546fe0e2 (patch) | |
| tree | 6c08bca566cf24901a865ed946a620579e5694b2 /include/linux/debugobjects.h | |
| parent | 83b54ef616b729a6100d418970246e58d10d163f (diff) | |
USB: serial: mxuport: support RS485 mode configuration
Add support for TIOCSRS485 and TIOCGRS485 so that userspace can
configure the serial interface mode using struct serial_rs485.
Map the serial_rs485 flags to the device interface modes as follows:
- RS232 = no flags set
- RS422 = SER_RS485_ENABLED | SER_RS485_MODE_RS422
- RS485_2W (half-duplex) = SER_RS485_ENABLED
- RS485_4W (full-duplex) = SER_RS485_ENABLED | SER_RS485_RX_DURING_TX
Unsupported flags and fields are cleared before applying the
configuration. Cache the sanitized per-port configuration and serialize
access with the per-port mutex.
Signed-off-by: Crescent Hsieh <crescentcy.hsieh@moxa.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
