[openwrt/openwrt] ipq807x: move AQR driver from built-in to kmod

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 15 14:43:08 PST 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/8c3bcc1989ac5fb596da86bfd82af6f8aafca1ab

commit 8c3bcc1989ac5fb596da86bfd82af6f8aafca1ab
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Wed Feb 15 17:05:30 2023 +0100

    ipq807x: move AQR driver from built-in to kmod
    
    ipq807x does not compile-in hwmon core, and this is leading to the hwmon
    code in AQR driver not being compiled due to IS_REACHABLE(CONFIG_HWMON)
    evaluating to false as hwmon is being built as a module.
    
    So, lets not compile-in Aquantia PHY driver so it can be included as kmod
    instead to have functioning hwmon.
    
    This allows using the thermal sensors in AQR-s as thermal zones for
    cooling devices like fans.
    
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/ipq807x/Makefile    | 2 +-
 target/linux/ipq807x/config-5.15 | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/target/linux/ipq807x/Makefile b/target/linux/ipq807x/Makefile
index f753cb3f50..fdabf575d3 100644
--- a/target/linux/ipq807x/Makefile
+++ b/target/linux/ipq807x/Makefile
@@ -14,7 +14,7 @@ include $(INCLUDE_DIR)/target.mk
 DEFAULT_PACKAGES += \
 	kmod-usb3 kmod-usb-dwc3 kmod-usb-dwc3-qcom \
 	kmod-leds-gpio kmod-gpio-button-hotplug \
-	kmod-qca-nss-dp \
+	kmod-phy-aquantia kmod-qca-nss-dp \
 	ath11k-firmware-ipq8074 kmod-ath11k-ahb \
 	wpad-basic-mbedtls uboot-envtools
 
diff --git a/target/linux/ipq807x/config-5.15 b/target/linux/ipq807x/config-5.15
index 923cd935f3..6ab29ebbe6 100644
--- a/target/linux/ipq807x/config-5.15
+++ b/target/linux/ipq807x/config-5.15
@@ -1,7 +1,6 @@
 CONFIG_64BIT=y
 # CONFIG_APQ_GCC_8084 is not set
 # CONFIG_APQ_MMCC_8084 is not set
-CONFIG_AQUANTIA_PHY=y
 CONFIG_ARCH_DMA_ADDR_T_64BIT=y
 CONFIG_ARCH_HIBERNATION_POSSIBLE=y
 CONFIG_ARCH_KEEP_MEMBLOCK=y




More information about the lede-commits mailing list