diff options
author | Zheng Liu <zhliu@nvidia.com> | 2015-07-07 16:54:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-09 02:58:20 -0400 |
commit | d065c3c17dae95832badf6329512dd057c905890 (patch) | |
tree | 2c233daca83f81cebe2023266037ee247a916e1a | |
parent | 4eed4d8ff984abcb983ada5b3dbf56fce35f1068 (diff) |
drivers/net/usb: add device id for NVIDIA Tegra USB 3.0 Ethernet
This device is sold as 'NVIDIA Tegra USB 3.0 Ethernet'.
Chipset is RTL8153 and works with r8152.
Signed-off-by: Zheng Liu <zhliu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/usb/cdc_ether.c | 8 | ||||
-rw-r--r-- | drivers/net/usb/r8152.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 4545e78840b0..35a2bffe848a 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c | |||
@@ -523,6 +523,7 @@ static const struct driver_info wwan_info = { | |||
523 | #define REALTEK_VENDOR_ID 0x0bda | 523 | #define REALTEK_VENDOR_ID 0x0bda |
524 | #define SAMSUNG_VENDOR_ID 0x04e8 | 524 | #define SAMSUNG_VENDOR_ID 0x04e8 |
525 | #define LENOVO_VENDOR_ID 0x17ef | 525 | #define LENOVO_VENDOR_ID 0x17ef |
526 | #define NVIDIA_VENDOR_ID 0x0955 | ||
526 | 527 | ||
527 | static const struct usb_device_id products[] = { | 528 | static const struct usb_device_id products[] = { |
528 | /* BLACKLIST !! | 529 | /* BLACKLIST !! |
@@ -710,6 +711,13 @@ static const struct usb_device_id products[] = { | |||
710 | .driver_info = 0, | 711 | .driver_info = 0, |
711 | }, | 712 | }, |
712 | 713 | ||
714 | /* NVIDIA Tegra USB 3.0 Ethernet Adapters (based on Realtek RTL8153) */ | ||
715 | { | ||
716 | USB_DEVICE_AND_INTERFACE_INFO(NVIDIA_VENDOR_ID, 0x09ff, USB_CLASS_COMM, | ||
717 | USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE), | ||
718 | .driver_info = 0, | ||
719 | }, | ||
720 | |||
713 | /* WHITELIST!!! | 721 | /* WHITELIST!!! |
714 | * | 722 | * |
715 | * CDC Ether uses two interfaces, not necessarily consecutive. | 723 | * CDC Ether uses two interfaces, not necessarily consecutive. |
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index aafa1a1898e4..7f6419ebb5e1 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c | |||
@@ -494,6 +494,7 @@ enum rtl8152_flags { | |||
494 | #define VENDOR_ID_REALTEK 0x0bda | 494 | #define VENDOR_ID_REALTEK 0x0bda |
495 | #define VENDOR_ID_SAMSUNG 0x04e8 | 495 | #define VENDOR_ID_SAMSUNG 0x04e8 |
496 | #define VENDOR_ID_LENOVO 0x17ef | 496 | #define VENDOR_ID_LENOVO 0x17ef |
497 | #define VENDOR_ID_NVIDIA 0x0955 | ||
497 | 498 | ||
498 | #define MCU_TYPE_PLA 0x0100 | 499 | #define MCU_TYPE_PLA 0x0100 |
499 | #define MCU_TYPE_USB 0x0000 | 500 | #define MCU_TYPE_USB 0x0000 |
@@ -4117,6 +4118,7 @@ static struct usb_device_id rtl8152_table[] = { | |||
4117 | {REALTEK_USB_DEVICE(VENDOR_ID_SAMSUNG, 0xa101)}, | 4118 | {REALTEK_USB_DEVICE(VENDOR_ID_SAMSUNG, 0xa101)}, |
4118 | {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7205)}, | 4119 | {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7205)}, |
4119 | {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x304f)}, | 4120 | {REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x304f)}, |
4121 | {REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)}, | ||
4120 | {} | 4122 | {} |
4121 | }; | 4123 | }; |
4122 | 4124 | ||