Thread (28 messages) 28 messages, 3 authors, 2026-03-06

Re: [PATCH v7 09/15] PCI: rzg3s-host: Add SoC-specific configuration and initialization callbacks

From: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Date: 2026-03-02 16:28:31
Also in: linux-clk, linux-pci, linux-renesas-soc


On 2/27/26 17:32, John Madieu wrote:
Add optional cfg_pre_init, cfg_post_init, and cfg_deinit callbacks
to handle SoC-specific configuration methods. While RZ/G3S uses the Linux
reset framework with dedicated reset lines, other SoC variants like RZ/G3E
control configuration resets through PCIe AXI registers.

As Linux reset bulk API gracefully handles optional NULL reset lines
(num_cfg_resets = 0 for RZ/G3E), the driver continues to use the standard
reset framework when reset lines are available, while custom callbacks
are only invoked when provided.

This provides a balanced pattern where:
- RZ/G3S: Uses callbacks that fall back to the
   reset framework
Nit: This fits on the previous line.
- RZ/G3E: Sets num_cfg_resets=0, provides
   cfg_pre_init/cfg_post_init/cfg_deinit

Add cfg_pre_init, cfg_post_init, and cfg_deinit callbacks to support
custom configuration mechanism in preparation to RZ/G3E PCIe support.

Signed-off-by: John Madieu<john.madieu.xa@bp.renesas.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help