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.

Merge tag 'pwrseq-fixes-for-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull power sequencing fixes from Bartosz Golaszewski:
"There's one fix for an invalid pointer dereference in error path
reported by smatch and two patches that address the noisy config
choices you reported earlier this week.

Summary:

- fix an invalid pointer dereference in error path in pwrseq core

- reduce the Kconfig noise from PCI pwrctl choices"

* tag 'pwrseq-fixes-for-v6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
arm64: qcom: don't select HAVE_PWRCTL when PCI=n
Kconfig: reduce the amount of power sequencing noise
power: sequencing: fix an invalid pointer dereference in error path

+8 -9
+1
arch/arm64/Kconfig.platforms
··· 266 266 bool "Qualcomm Platforms" 267 267 select GPIOLIB 268 268 select PINCTRL 269 + select HAVE_PWRCTL if PCI 269 270 help 270 271 This enables support for the ARMv8 based Qualcomm chipsets. 271 272
+1
drivers/net/wireless/ath/ath11k/Kconfig
··· 24 24 select MHI_BUS 25 25 select QRTR 26 26 select QRTR_MHI 27 + select PCI_PWRCTL_PWRSEQ if HAVE_PWRCTL 27 28 help 28 29 This module adds support for PCIE bus 29 30
+1
drivers/net/wireless/ath/ath12k/Kconfig
··· 7 7 select MHI_BUS 8 8 select QRTR 9 9 select QRTR_MHI 10 + select PCI_PWRCTL_PWRSEQ if HAVE_PWRCTL 10 11 help 11 12 Enable support for Qualcomm Technologies Wi-Fi 7 (IEEE 12 13 802.11be) family of chipsets, for example WCN7850 and
+3 -8
drivers/pci/pwrctl/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 3 - menu "PCI Power control drivers" 3 + config HAVE_PWRCTL 4 + bool 4 5 5 6 config PCI_PWRCTL 6 7 tristate 7 8 8 9 config PCI_PWRCTL_PWRSEQ 9 - tristate "PCI Power Control driver using the Power Sequencing subsystem" 10 + tristate 10 11 select POWER_SEQUENCING 11 12 select PCI_PWRCTL 12 - default m if ((ATH11K_PCI || ATH12K) && ARCH_QCOM) 13 - help 14 - Enable support for the PCI power control driver for device 15 - drivers using the Power Sequencing subsystem. 16 - 17 - endmenu
+2 -1
drivers/power/sequencing/core.c
··· 212 212 213 213 static void pwrseq_target_free(struct pwrseq_target *target) 214 214 { 215 - pwrseq_unit_put(target->unit); 215 + if (!IS_ERR_OR_NULL(target->unit)) 216 + pwrseq_unit_put(target->unit); 216 217 kfree_const(target->name); 217 218 kfree(target); 218 219 }