mbox series

[v2,0/2] PCI/pwrctl: fixes for v6.11

Message ID 20240819082445.10248-1-brgl@bgdev.pl (mailing list archive)
Headers show
Series PCI/pwrctl: fixes for v6.11 | expand

Message

Bartosz Golaszewski Aug. 19, 2024, 8:24 a.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Here are two fixes addressing issues with PCI pwrctl detected in some
corner-cases.

v1 -> v2:
- use the scoped variant of for_each_child_of_node() to fix a memory
  leak in patch 1/2

Bartosz Golaszewski (2):
  PCI: don't rely on of_platform_depopulate() for reused OF-nodes
  PCI/pwrctl: put the bus rescan on a different thread

 drivers/pci/pwrctl/core.c              | 26 +++++++++++++++++++++++---
 drivers/pci/pwrctl/pci-pwrctl-pwrseq.c |  2 +-
 drivers/pci/remove.c                   | 16 +++++++++++++++-
 include/linux/pci-pwrctl.h             |  3 +++
 4 files changed, 42 insertions(+), 5 deletions(-)

Comments

Bartosz Golaszewski Aug. 22, 2024, 10:23 a.m. UTC | #1
On Mon, Aug 19, 2024 at 10:24 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> Here are two fixes addressing issues with PCI pwrctl detected in some
> corner-cases.
>
> v1 -> v2:
> - use the scoped variant of for_each_child_of_node() to fix a memory
>   leak in patch 1/2
>
> Bartosz Golaszewski (2):
>   PCI: don't rely on of_platform_depopulate() for reused OF-nodes
>   PCI/pwrctl: put the bus rescan on a different thread
>
>  drivers/pci/pwrctl/core.c              | 26 +++++++++++++++++++++++---
>  drivers/pci/pwrctl/pci-pwrctl-pwrseq.c |  2 +-
>  drivers/pci/remove.c                   | 16 +++++++++++++++-
>  include/linux/pci-pwrctl.h             |  3 +++
>  4 files changed, 42 insertions(+), 5 deletions(-)
>
> --
> 2.43.0
>

Bjorn,

We found another issue that will require extending and modifying of
this series. Please disregard this iteration and I'll send a new
version shortly.

Bart