]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
USB: serial: ftdi_sio: add support for Abacus Electrics Optical Probe
authorMichael Ehrenreich <michideep@gmail.com>
Mon, 17 Mar 2025 05:17:15 +0000 (06:17 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 16 Apr 2025 06:38:20 +0000 (08:38 +0200)
Abacus Electrics makes optical probes for interacting with smart meters
over an optical interface.

At least one version uses an FT232B chip (as detected by ftdi_sio) with
a custom USB PID, which needs to be added to the list to make the device
work in a plug-and-play fashion.

Signed-off-by: Michael Ehrenreich <michideep@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio_ids.h

index 9b34e23b70919fb64665a530af7fe687895301af..6ac7a0a5cf074e0629dfdd3b2330bfa05ca31663 100644 (file)
@@ -1093,6 +1093,8 @@ static const struct usb_device_id id_table_combined[] = {
        { USB_DEVICE_INTERFACE_NUMBER(ALTERA_VID, ALTERA_UB3_602E_PID, 1) },
        { USB_DEVICE_INTERFACE_NUMBER(ALTERA_VID, ALTERA_UB3_602E_PID, 2) },
        { USB_DEVICE_INTERFACE_NUMBER(ALTERA_VID, ALTERA_UB3_602E_PID, 3) },
+       /* Abacus Electrics */
+       { USB_DEVICE(FTDI_VID, ABACUS_OPTICAL_PROBE_PID) },
        { }                                     /* Terminating entry */
 };
 
index 52be47d684ea66d4333801694a0a9b80bce6f153..9acb6f8373276383f4f238623123432cbdeb7c6b 100644 (file)
 #define LINX_FUTURE_1_PID   0xF44B     /* Linx future device */
 #define LINX_FUTURE_2_PID   0xF44C     /* Linx future device */
 
+/*
+ * Abacus Electrics
+ */
+#define ABACUS_OPTICAL_PROBE_PID       0xf458 /* ABACUS ELECTRICS Optical Probe */
+
 /*
  * Oceanic product ids
  */