kernel: support new mdio_devres.ko module in 5.10

Add kmod-mdio-devres package and kernel config symbol, and update related
kmod-r8169 and kmod-ixgbe package dependencies.

Build tested module dependencies on x86/64 with CONFIG_ALL_KMODS=y.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
This commit is contained in:
Tony Ambardar 2021-03-07 20:22:03 -08:00 committed by Kevin Darbyshire-Bryant
parent 736edf9dea
commit 95a3741d17
2 changed files with 22 additions and 4 deletions

View File

@ -138,6 +138,23 @@ endef
$(eval $(call KernelPackage,mii)) $(eval $(call KernelPackage,mii))
define KernelPackage/mdio-devres
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Supports MDIO device registration
DEPENDS:=@LINUX_5_10 +kmod-libphy
KCONFIG:=CONFIG_MDIO_DEVRES
HIDDEN:=1
FILES:=$(LINUX_DIR)/drivers/net/phy/mdio_devres.ko
AUTOLOAD:=$(call AutoProbe,mdio-devres)
endef
define KernelPackage/mdio-devres/description
Supports MDIO device registration
endef
$(eval $(call KernelPackage,mdio-devres))
define KernelPackage/mdio-gpio define KernelPackage/mdio-gpio
SUBMENU:=$(NETWORK_DEVICES_MENU) SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:= Supports GPIO lib-based MDIO busses TITLE:= Supports GPIO lib-based MDIO busses
@ -545,8 +562,9 @@ $(eval $(call KernelPackage,8139cp))
define KernelPackage/r8169 define KernelPackage/r8169
SUBMENU:=$(NETWORK_DEVICES_MENU) SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=RealTek RTL-8169 PCI Gigabit Ethernet Adapter kernel support TITLE:=RealTek RTL-8169 PCI Gigabit Ethernet Adapter kernel support
DEPENDS:=@PCI_SUPPORT +kmod-mii +r8169-firmware +kmod-phy-realtek DEPENDS:=@PCI_SUPPORT +kmod-mii +r8169-firmware +kmod-phy-realtek +LINUX_5_10:kmod-mdio-devres
KCONFIG:=CONFIG_R8169 \ KCONFIG:= \
CONFIG_R8169 \
CONFIG_R8169_NAPI=y \ CONFIG_R8169_NAPI=y \
CONFIG_R8169_VLAN=n CONFIG_R8169_VLAN=n
FILES:=$(LINUX_DIR)/drivers/net/ethernet/realtek/r8169.ko FILES:=$(LINUX_DIR)/drivers/net/ethernet/realtek/r8169.ko
@ -670,7 +688,7 @@ $(eval $(call KernelPackage,igbvf))
define KernelPackage/ixgbe define KernelPackage/ixgbe
SUBMENU:=$(NETWORK_DEVICES_MENU) SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Intel(R) 82598/82599 PCI-Express 10 Gigabit Ethernet support TITLE:=Intel(R) 82598/82599 PCI-Express 10 Gigabit Ethernet support
DEPENDS:=@PCI_SUPPORT +kmod-mdio +kmod-ptp +kmod-hwmon-core +kmod-libphy DEPENDS:=@PCI_SUPPORT +kmod-mdio +kmod-ptp +kmod-hwmon-core +kmod-libphy +LINUX_5_10:kmod-mdio-devres
KCONFIG:=CONFIG_IXGBE \ KCONFIG:=CONFIG_IXGBE \
CONFIG_IXGBE_VXLAN=n \ CONFIG_IXGBE_VXLAN=n \
CONFIG_IXGBE_HWMON=y \ CONFIG_IXGBE_HWMON=y \

View File

@ -3098,7 +3098,7 @@ CONFIG_MAY_USE_DEVLINK=y
# CONFIG_MDIO_BUS_MUX_MMIOREG is not set # CONFIG_MDIO_BUS_MUX_MMIOREG is not set
# CONFIG_MDIO_BUS_MUX_MULTIPLEXER is not set # CONFIG_MDIO_BUS_MUX_MULTIPLEXER is not set
# CONFIG_MDIO_DEVICE is not set # CONFIG_MDIO_DEVICE is not set
CONFIG_MDIO_DEVRES=y # CONFIG_MDIO_DEVRES is not set
# CONFIG_MDIO_HISI_FEMAC is not set # CONFIG_MDIO_HISI_FEMAC is not set
# CONFIG_MDIO_IPQ4019 is not set # CONFIG_MDIO_IPQ4019 is not set
# CONFIG_MDIO_IPQ8064 is not set # CONFIG_MDIO_IPQ8064 is not set