• hayeswang's avatar
    r8152: redefine REALTEK_USB_DEVICE · d9a28c5b
    hayeswang authored
    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: default avatarHayes Wang <hayeswang@realtek.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d9a28c5b
r8152.c 89.1 KB