Re: [PATCH v7 00/14] PCI: rzg3s-host: Add PCIe hotplug support

From: Claudiu Beznea

Date: Thu Nov 26 2026 - 13:38:21 EST


Hi, Mani,

On 11/25/26 19:44, Manivannan Sadhasivam wrote:
On 2026-10-19 09:50 +0300, Claudiu Beznea wrote:
From: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>

Hi,

Series adds hotplug support for the rzg3s-host driver. This is a
continuation of the series John posted initially at [1]. Along with it,
prerequisites fixes and cleanup patches were added.

Series was tested on RZ/G3S and RZ/G3E boards by generating consecutive
link down/up events. The RZ/G3S has an I2C device which, depending on
the way it is programmed, it controls the state of the PCIe link. The
board has 3 PCIe interface: PCIE_SLOT, M.2 Key E, M.2 Key B. The
following script was executed for ~9 hours:

#!/bin/sh

echo performance > /sys/module/pcie_aspm/parameters/policy

while :; do
i2cset -y 1 0x18 0xf4 0x8 # Link down
i2cset -y 1 0x18 0xf4 0xc # Link up: PCIE_SLOT (NVMe Micron)
i2cset -y 1 0x18 0xf4 0x8 # Link down
i2cset -y 1 0x18 0xf4 0xd # Link up: M.2 Key B (NVMe Transcend)
i2cset -y 1 0x18 0xf4 0x8 # Link down
i2cset -y 1 0x18 0xf4 0xb # Link up: M.2 Key E (WiFi AX200)
done


Given that this series is already 14 patches, you should really consider
splitting it into atleast two. Patches 1-12 are mere code cleanups/refactors, so
they can get merged independently and you can post the follow-up series after
incorporating comments for patches 13 and 14.
I agree. Yesterday, when I got your review comments, I was in the process of preparing a fixes series (patches 1-6 + [1]). I've added [1] since its becoming necessary for our testing (and Ovidiu proposed it like this).

If you consider OK, I can also add the cleanups along with the fixes series, thus:
- patches 1-6
- patch [1]
- patches 7-12

Or go with 3 series:
1/ fixes (patches 1-2, 4-6, [1])
2/ cleanups (patches 3, 7-12)
3/ link event + reset root port

Please let me know which option you would prefer

Thank you for your review,
Claudiu

[1] https://lore.kernel.org/all/20261029172831.9409-1-ovidiu.panait.rb@xxxxxxxxxxx