USB: cdc-acm: clean up no-union-descriptor handling
authorJohan Hovold <johan@kernel.org>
Mon, 21 Sep 2020 13:59:51 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Sep 2020 15:01:12 +0000 (17:01 +0200)
commitbf1c6744983339782b16078cc68b230cde7d29b9
tree42686a90db0941dc60662215c2616c132cb776c3
parent319bb4a7fef74231e3297b8f70419c9d410e2e63
USB: cdc-acm: clean up no-union-descriptor handling

For interfaces that lack a union descriptor, probe for a
"combined-interface" before falling back to the call-management
descriptor instead of the other way round.

This allows for the removal of the NO_DATA_INTERFACE quirk and makes the
probe algorithm somewhat easier to follow.

Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20200921135951.24045-5-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c
drivers/usb/class/cdc-acm.h