[PATCH] PCI: uniphier: Tear down legacy interrupts on host removal
Kunihiko Hayashi
hayashi.kunihiko at socionext.com
Mon Nov 30 23:12:32 PST 2026
Hi,
On 2026/11/30 1:30, Guangshuo Li wrote:
> The host driver leaves its chained handler and INTx domain installed
> when host initialization fails or the driver is removed. Detach the
> handler and release the interrupt mappings in the host deinit callback.
> On removal, stop the root bus before releasing the controller resources.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 7e6d5cd88a6f ("PCI: uniphier: Add UniPhier PCIe host controller support")
> Signed-off-by: Guangshuo Li <liguangshuo at mail.sdu.edu.cn>
> ---
> drivers/pci/controller/dwc/pcie-uniphier.c | 38 +++++++++++++++++++++-
> 1 file changed, 37 insertions(+), 1 deletion(-)
Thank you for the patch.
I reviewed the changes and they look reasonable to me.
I also tested repeated unbind(and port removal)/bind cycles of the controller
on the real board like that:
cd /sys/devices/platform/soc at 0/66000000.pcie
echo 1 > pci0000\:00/0000\:00\:00.0/remove
cd driver
echo 66000000.pcie > unbind
echo 66000000.pcie > bind
cd -
And the controller was reprobed successfully and the root port was recreated
without warning or errors.
I don't see any obvious issues with this change.
Thank you,
---
Best Regards
Kunihiko Hayashi
More information about the linux-arm-kernel
mailing list