Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

r8153_ecm: avoid to be prior to r8152 driver

Avoid r8153_ecm is compiled as built-in, if r8152 driver is compiled
as modules. Otherwise, the r8153_ecm would be used, even though the
device is supported by r8152 driver.

Fixes: c1aedf015ebd ("net/usb/r8153_ecm: support ECM mode for RTL8153")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/1394712342-15778-394-Taiwan-albertk@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Hayes Wang and committed by
Jakub Kicinski
657bc1d1 e76d795e

+11 -1
+9
drivers/net/usb/Kconfig
··· 628 628 This driver should work with at least the following devices: 629 629 * Aquantia AQtion USB to 5GbE 630 630 631 + config USB_RTL8153_ECM 632 + tristate "RTL8153 ECM support" 633 + depends on USB_NET_CDCETHER && (USB_RTL8152 || USB_RTL8152=n) 634 + default y 635 + help 636 + This option supports ECM mode for RTL8153 ethernet adapter, when 637 + CONFIG_USB_RTL8152 is not set, or the RTL8153 device is not 638 + supported by r8152 driver. 639 + 631 640 endif # USB_NET_DRIVERS
+2 -1
drivers/net/usb/Makefile
··· 13 13 obj-$(CONFIG_USB_NET_AX8817X) += asix.o 14 14 asix-y := asix_devices.o asix_common.o ax88172a.o 15 15 obj-$(CONFIG_USB_NET_AX88179_178A) += ax88179_178a.o 16 - obj-$(CONFIG_USB_NET_CDCETHER) += cdc_ether.o r8153_ecm.o 16 + obj-$(CONFIG_USB_NET_CDCETHER) += cdc_ether.o 17 17 obj-$(CONFIG_USB_NET_CDC_EEM) += cdc_eem.o 18 18 obj-$(CONFIG_USB_NET_DM9601) += dm9601.o 19 19 obj-$(CONFIG_USB_NET_SR9700) += sr9700.o ··· 41 41 obj-$(CONFIG_USB_NET_CDC_MBIM) += cdc_mbim.o 42 42 obj-$(CONFIG_USB_NET_CH9200) += ch9200.o 43 43 obj-$(CONFIG_USB_NET_AQC111) += aqc111.o 44 + obj-$(CONFIG_USB_RTL8153_ECM) += r8153_ecm.o