All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] PCI/pwrctl: Ensure that the pwrctl drivers are probed before PCI client drivers
@ 2024-10-25  7:54 ` Manivannan Sadhasivam via B4 Relay
  0 siblings, 0 replies; 26+ messages in thread
From: Manivannan Sadhasivam @ 2024-10-25  7:54 UTC (permalink / raw)
  To: Bjorn Helgaas, Bartosz Golaszewski, Bartosz Golaszewski
  Cc: linux-pci, linux-kernel, Dmitry Baryshkov, Johan Hovold,
	Abel Vesa, Stephan Gerhold, Srinivas Kandagatla, Bjorn Andersson,
	Manivannan Sadhasivam, Krishna chaitanya chundru,
	stable+noautosel

Hi,

This series reworks the PCI/pwrctl integration to ensure that the pwrctl drivers
are always probed before the PCI client drivers. This series addresses a race
condition when both pwrctl and pwrctl/pwrseq drivers probe parallely (even when
the later one probes last). One such issue was reported for the Qcom X13s
platform with WLAN module and fixed with 'commit a9aaf1ff88a8 ("power:
sequencing: request the WLAN enable GPIO as-is")'.

Though the issue was fixed with a hack in the pwrseq driver, it was clear that
the issue is applicable to all pwrctl drivers. Hence, this series tries to
address the issue in the PCI/pwrctl integration.

- Mani

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
Changes in v2:
- Used for_each_available_child_of_node_scoped() to iterate over child nodes
  (Bartosz)
- Collected tags
- Link to v1: https://lore.kernel.org/r/20241022-pci-pwrctl-rework-v1-0-94a7e90f58c5@linaro.org

---
Manivannan Sadhasivam (5):
      PCI/pwrctl: Use of_platform_device_create() to create pwrctl devices
      PCI/pwrctl: Create pwrctl devices only if at least one power supply is present
      PCI/pwrctl: Ensure that the pwrctl drivers are probed before the PCI client drivers
      PCI/pwrctl: Move pwrctl device creation to its own helper function
      PCI/pwrctl: Remove pwrctl device without iterating over all children of pwrctl parent

 drivers/pci/bus.c         | 64 +++++++++++++++++++++++++++++++++++++++++------
 drivers/pci/of.c          | 27 ++++++++++++++++++++
 drivers/pci/pci.h         |  5 ++++
 drivers/pci/pwrctl/core.c | 10 --------
 drivers/pci/remove.c      | 17 ++++++-------
 5 files changed, 96 insertions(+), 27 deletions(-)
---
base-commit: 48dc7986beb60522eb217c0016f999cc7afaf0b7
change-id: 20241022-pci-pwrctl-rework-a1b024158555

Best regards,
-- 
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-11-21 20:14 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25  7:54 [PATCH v2 0/5] PCI/pwrctl: Ensure that the pwrctl drivers are probed before PCI client drivers Manivannan Sadhasivam
2024-10-25  7:54 ` Manivannan Sadhasivam via B4 Relay
2024-10-25  7:54 ` [PATCH v2 1/5] PCI/pwrctl: Use of_platform_device_create() to create pwrctl devices Manivannan Sadhasivam
2024-10-25  7:54   ` Manivannan Sadhasivam via B4 Relay
2024-10-25  7:57   ` Bartosz Golaszewski
2024-10-25  7:54 ` [PATCH v2 2/5] PCI/pwrctl: Create pwrctl devices only if at least one power supply is present Manivannan Sadhasivam
2024-10-25  7:54   ` Manivannan Sadhasivam via B4 Relay
2024-11-06 21:28   ` Bjorn Helgaas
2024-11-07  9:52     ` Bartosz Golaszewski
2024-11-07 11:15       ` Manivannan Sadhasivam
2024-11-16 18:41         ` Krzysztof Wilczyński
2024-11-21  8:54           ` Klara Modin
2024-11-21 16:03             ` Krzysztof Wilczyński
2024-10-25  7:54 ` [PATCH v2 3/5] PCI/pwrctl: Ensure that the pwrctl drivers are probed before the PCI client drivers Manivannan Sadhasivam
2024-10-25  7:54   ` Manivannan Sadhasivam via B4 Relay
2024-11-20 16:10   ` Bjorn Helgaas
2024-11-20 17:02     ` Manivannan Sadhasivam
2024-11-20 20:18       ` Bjorn Helgaas
2024-11-21 12:00         ` Manivannan Sadhasivam
2024-11-21 18:28           ` Krzysztof Wilczyński
2024-11-21 20:14             ` Krzysztof Wilczyński
2024-10-25  7:54 ` [PATCH v2 4/5] PCI/pwrctl: Move pwrctl device creation to its own helper function Manivannan Sadhasivam
2024-10-25  7:54   ` Manivannan Sadhasivam via B4 Relay
2024-10-25  8:07   ` Bartosz Golaszewski
2024-10-25  7:54 ` [PATCH v2 5/5] PCI/pwrctl: Remove pwrctl device without iterating over all children of pwrctl parent Manivannan Sadhasivam
2024-10-25  7:54   ` Manivannan Sadhasivam via B4 Relay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.