[openwrt/openwrt] kernel: Enable hwmon for nvme

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 26 13:21:00 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0f9a281e6f5dafdaea8cb0d77a1c6c9d0739b6ad

commit 0f9a281e6f5dafdaea8cb0d77a1c6c9d0739b6ad
Author: Luca Barbato <lu_zero at gentoo.org>
AuthorDate: Tue Aug 8 11:02:41 2023 +0200

    kernel: Enable hwmon for nvme
    
    Expose the temperature sensors as hwmon, it improves the overall
    user experience since on tiny boards the nvme can become a substantial
    source of heat.
    
    Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
    Reviewed-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/linux/modules/block.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/kernel/linux/modules/block.mk b/package/kernel/linux/modules/block.mk
index 4ee3f78f38..5e6eefa76a 100644
--- a/package/kernel/linux/modules/block.mk
+++ b/package/kernel/linux/modules/block.mk
@@ -496,12 +496,12 @@ $(eval $(call KernelPackage,nbd))
 define KernelPackage/nvme
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=NVM Express block device
-  DEPENDS:=@PCI_SUPPORT
+  DEPENDS:=@PCI_SUPPORT +kmod-hwmon-core
   KCONFIG:= \
 	CONFIG_NVME_CORE \
 	CONFIG_BLK_DEV_NVME \
 	CONFIG_NVME_MULTIPATH=n \
-	CONFIG_NVME_HWMON=n
+	CONFIG_NVME_HWMON=y
   FILES:= \
 	$(LINUX_DIR)/drivers/nvme/host/nvme-core.ko \
 	$(LINUX_DIR)/drivers/nvme/host/nvme.ko




More information about the lede-commits mailing list