]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: serial: ftdi_sio: match on interface number for jtag
authorJohan Hovold <johan@kernel.org>
Mon, 10 Nov 2025 11:12:05 +0000 (12:12 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 17 Nov 2025 10:21:08 +0000 (11:21 +0100)
commit4e31a5d0a9ee672f708fc993c1d5520643f769fd
treebe31e70d599cc23dd5a2f1784d9292ab00ff91bc
parent53002803832be8cfea1466ce8d568014e9de29d6
USB: serial: ftdi_sio: match on interface number for jtag

Some FTDI devices have the first port reserved for JTAG and have been
using a dedicated quirk to prevent binding to it.

As can be inferred directly or indirectly from the commit messages,
almost all of these devices are dual port devices which means that the
more recently added macro for matching on interface number can be used
instead (and some such devices do so already).

This avoids probing interfaces that will never be bound and cleans up
the match table somewhat.

Note that the JTAG quirk is kept for quad port devices, which would
otherwise require three match entries.

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c