OSDN Git Service

USB: serial: xr: add support for XR21V1412 and XR21V1414
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:55:46 +0000 (11:55 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:36:20 +0000 (18:36 +0200)
commit23b7998e81aa37d97897aa236bdcfba3f6edeb66
treedc4b97e71992dd5e44e18a75461a48aecfbac8ef
parent4ef8f235778716476528a0ca270a4783ef6a40bb
USB: serial: xr: add support for XR21V1412 and XR21V1414

Add support for the two- and four-port variants of XR21V1410.

Use the interface number of each control interface (e.g. 0, 2, 4, 6) to
derive the zero-based channel index:

XR21V1410 0
XR21V1412 0, 1
XR21V1414 0, 1, 2, 3

Note that the UART registers reside in separate blocks per channel,
while the UART Manager functionality is implemented using per-channel
registers.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c