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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
319bb4a7fe
commit
bf1c674498
@@ -135,9 +135,8 @@ struct acm {
|
||||
#define NO_UNION_NORMAL BIT(0)
|
||||
#define SINGLE_RX_URB BIT(1)
|
||||
#define NO_CAP_LINE BIT(2)
|
||||
#define NO_DATA_INTERFACE BIT(4)
|
||||
#define IGNORE_DEVICE BIT(5)
|
||||
#define QUIRK_CONTROL_LINE_STATE BIT(6)
|
||||
#define CLEAR_HALT_CONDITIONS BIT(7)
|
||||
#define SEND_ZERO_PACKET BIT(8)
|
||||
#define DISABLE_ECHO BIT(9)
|
||||
#define IGNORE_DEVICE BIT(3)
|
||||
#define QUIRK_CONTROL_LINE_STATE BIT(4)
|
||||
#define CLEAR_HALT_CONDITIONS BIT(5)
|
||||
#define SEND_ZERO_PACKET BIT(6)
|
||||
#define DISABLE_ECHO BIT(7)
|
||||
|
Reference in New Issue
Block a user