]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
USB: serial: ftdi_sio: add support for u-blox EVK-M101
authorOleksandr Suvorov <cryosay@gmail.com>
Thu, 30 Oct 2025 15:42:54 +0000 (17:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:25:01 +0000 (06:25 +0900)
commit 2d8ab771d5316de64f3bb920b82575c58eb00b1b upstream.

The U-Blox EVK-M101 enumerates as 1546:0506 [1] with four FTDI interfaces:
- EVK-M101 current sensors
- EVK-M101 I2C
- EVK-M101 UART
- EVK-M101 port D

Only the third USB interface is a UART. This change lets ftdi_sio probe
the VID/PID and registers only interface #3 as a TTY, leaving the rest
available for other drivers.

[1]
usb 5-1.3: new high-speed USB device number 11 using xhci_hcd
usb 5-1.3: New USB device found, idVendor=1546, idProduct=0506, bcdDevice= 8.00
usb 5-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-1.3: Product: EVK-M101
usb 5-1.3: Manufacturer: u-blox AG

Datasheet: https://content.u-blox.com/sites/default/files/documents/EVK-M10_UserGuide_UBX-21003949.pdf

Signed-off-by: Oleksandr Suvorov <cryosay@gmail.com>
Link: https://lore.kernel.org/20250926060235.3442748-1-cryosay@gmail.com/
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio_ids.h

index 4f21d75f587770ba4400d0a38c0e3d1c8f69fa3b..b013eb0398e42e35e3f8a745c4a2828a97bd90f4 100644 (file)
@@ -1074,6 +1074,7 @@ static const struct usb_device_id id_table_combined[] = {
        /* U-Blox devices */
        { USB_DEVICE(UBLOX_VID, UBLOX_C099F9P_ZED_PID) },
        { USB_DEVICE(UBLOX_VID, UBLOX_C099F9P_ODIN_PID) },
+       { USB_DEVICE_INTERFACE_NUMBER(UBLOX_VID, UBLOX_EVK_M101_PID, 2) },
        /* FreeCalypso USB adapters */
        { USB_DEVICE(FTDI_VID, FTDI_FALCONIA_JTAG_BUF_PID),
                .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
index 4cc1fae8acb970cc40473dc12ad0295b42b19ecc..2539b9e2f712c355877be0040777b5fffb6ab485 100644 (file)
 #define UBLOX_VID                      0x1546
 #define UBLOX_C099F9P_ZED_PID          0x0502
 #define UBLOX_C099F9P_ODIN_PID         0x0503
+#define UBLOX_EVK_M101_PID             0x0506
 
 /*
  * GMC devices