USB: serial: xr: claim both interfaces
authorJohan Hovold <johan@kernel.org>
Tue, 30 Mar 2021 14:38:20 +0000 (16:38 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 1 Apr 2021 08:04:21 +0000 (10:04 +0200)
commit5fec21e74bfc1db764fdab013162d839cc889290
treee25318e15e9b93d71cf7e02330642b98788eee54
parent5de03c99691d5b0b6253fda1d1d3bbc8239aadb8
USB: serial: xr: claim both interfaces

Use the new multi-interface support in USB serial core to properly claim
also the control interface during probe. This prevents having another
driver claim the control interface and makes core allocate resources
also for the interrupt endpoint (currently unused).

Switch to probing only Communication Class interfaces and use the Union
functional descriptor to determine the corresponding data interface.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c