net/usb: new driver for RTL8152
Add new driver for supporting Realtek RTL8152 Based USB 2.0 Ethernet Adapters Signed-off-by: Hayes Wang <hayeswang@realtek.com> Cc: Realtek linux nic maintainers <nic_swsd@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c81400be71
commit
ac718b6930
@ -93,6 +93,17 @@ config USB_RTL8150
|
|||||||
To compile this driver as a module, choose M here: the
|
To compile this driver as a module, choose M here: the
|
||||||
module will be called rtl8150.
|
module will be called rtl8150.
|
||||||
|
|
||||||
|
config USB_RTL8152
|
||||||
|
tristate "Realtek RTL8152 Based USB 2.0 Ethernet Adapters"
|
||||||
|
select NET_CORE
|
||||||
|
select MII
|
||||||
|
help
|
||||||
|
This option adds support for Realtek RTL8152 based USB 2.0
|
||||||
|
10/100 Ethernet adapters.
|
||||||
|
|
||||||
|
To compile this driver as a module, choose M here: the
|
||||||
|
module will be called r8152.
|
||||||
|
|
||||||
config USB_USBNET
|
config USB_USBNET
|
||||||
tristate "Multi-purpose USB Networking Framework"
|
tristate "Multi-purpose USB Networking Framework"
|
||||||
select NET_CORE
|
select NET_CORE
|
||||||
|
@ -6,6 +6,7 @@ obj-$(CONFIG_USB_CATC) += catc.o
|
|||||||
obj-$(CONFIG_USB_KAWETH) += kaweth.o
|
obj-$(CONFIG_USB_KAWETH) += kaweth.o
|
||||||
obj-$(CONFIG_USB_PEGASUS) += pegasus.o
|
obj-$(CONFIG_USB_PEGASUS) += pegasus.o
|
||||||
obj-$(CONFIG_USB_RTL8150) += rtl8150.o
|
obj-$(CONFIG_USB_RTL8150) += rtl8150.o
|
||||||
|
obj-$(CONFIG_USB_RTL8152) += r8152.o
|
||||||
obj-$(CONFIG_USB_HSO) += hso.o
|
obj-$(CONFIG_USB_HSO) += hso.o
|
||||||
obj-$(CONFIG_USB_NET_AX8817X) += asix.o
|
obj-$(CONFIG_USB_NET_AX8817X) += asix.o
|
||||||
asix-y := asix_devices.o asix_common.o ax88172a.o
|
asix-y := asix_devices.o asix_common.o ax88172a.o
|
||||||
|
@ -479,6 +479,7 @@ static const struct driver_info wwan_info = {
|
|||||||
#define NOVATEL_VENDOR_ID 0x1410
|
#define NOVATEL_VENDOR_ID 0x1410
|
||||||
#define ZTE_VENDOR_ID 0x19D2
|
#define ZTE_VENDOR_ID 0x19D2
|
||||||
#define DELL_VENDOR_ID 0x413C
|
#define DELL_VENDOR_ID 0x413C
|
||||||
|
#define REALTEK_VENDOR_ID 0x0bda
|
||||||
|
|
||||||
static const struct usb_device_id products [] = {
|
static const struct usb_device_id products [] = {
|
||||||
/*
|
/*
|
||||||
@ -619,6 +620,15 @@ static const struct usb_device_id products [] = {
|
|||||||
.driver_info = 0,
|
.driver_info = 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* Realtek RTL8152 Based USB 2.0 Ethernet Adapters */
|
||||||
|
#if defined(CONFIG_USB_RTL8152) || defined(CONFIG_USB_RTL8152_MODULE)
|
||||||
|
{
|
||||||
|
USB_DEVICE_AND_INTERFACE_INFO(REALTEK_VENDOR_ID, 0x8152, USB_CLASS_COMM,
|
||||||
|
USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
|
||||||
|
.driver_info = 0,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* WHITELIST!!!
|
* WHITELIST!!!
|
||||||
*
|
*
|
||||||
|
1767
drivers/net/usb/r8152.c
Normal file
1767
drivers/net/usb/r8152.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user