]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: option: match on interface class for Telit FN990B
authorJohan Hovold <johan@kernel.org>
Thu, 6 Mar 2025 10:44:41 +0000 (11:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:22 +0000 (12:54 -0700)
commitccffb475c133fd638330710a00217c307fd6f408
tree010ee2e9dfa50577b6617e705dad6175f8ad5a98
parentd233dbf101b174afcb523086bb82b49b06dd0961
USB: serial: option: match on interface class for Telit FN990B

commit 9a665fe3d967fe46edb4fd2497c7a5cc2dac2f55 upstream.

The device id entries for Telit FN990B ended up matching only on the
interface protocol. While this works, the protocol is qualified by the
interface class (and subclass) which should have been included.

Switch to matching using USB_DEVICE_AND_INTERFACE_INFO() while keeping
the entries sorted also by protocol for consistency.

Link: https://lore.kernel.org/20250227110655.3647028-2-fabio.porcedda@gmail.com/
Cc: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Daniele Palmas <dnlplm@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/option.c