]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
r8152: redefine REALTEK_USB_DEVICE
authorhayeswang <hayeswang@realtek.com>
Thu, 4 Dec 2014 02:43:11 +0000 (10:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 18:41:24 +0000 (13:41 -0500)
commitd9a28c5b4c9a69f3036743bed36902b45dd39f1d
treec6057c2d03eb1e9d7f70a949d2b9d0894ecf7dbf
parent6ffe75eb53564953e75c051e1c28676e1e56f385
r8152: redefine REALTEK_USB_DEVICE

Redefine REALTEK_USB_DEVICE for the desired USB interface for probe().
There are three USB interfaces for the device. USB_CLASS_COMM and
USB_CLASS_CDC_DATA are for ECM mode (config #2). USB_CLASS_VENDOR_SPEC
is for the vendor mode (config #1). However, we are not interesting
in USB_CLASS_CDC_DATA for probe(), so redefine REALTEK_USB_DEVICE
to ignore the USB interface class of USB_CLASS_CDC_DATA.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c