]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Dec 2025 17:37:19 +0000 (18:37 +0100)
commitccf6e31b91ae614cf03cf5967c0fdfdb5ca01f6d
treee101725d3c6f27c7e259f7bff731bd18b1fd81c9
parent31dea5e1c28cec570ed857f564274e52f21e3371
USB: serial: ftdi_sio: match on interface number for jtag

commit 4e31a5d0a9ee672f708fc993c1d5520643f769fd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c