Skip to content

Commit 4ec4ccd

Browse files
John MadieuMani-Sadhasivam
authored andcommitted
PCI: rzg3s-host: Make configuration reset lines optional
Some SoC variants such as RZ/G3E handle configuration reset control through PCIe AXI registers instead of dedicated reset lines. Make cfg_resets optional by using devm_reset_control_bulk_get_optional_exclusive() to allow SoCs to use alternative or complementary reset control mechanisms. Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # RZ/V2N EVK Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260306143423.19562-9-john.madieu.xa@bp.renesas.com
1 parent 346dd34 commit 4ec4ccd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/pci/controller/pcie-rzg3s-host.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,9 +1188,9 @@ static int rzg3s_pcie_resets_prepare_and_get(struct rzg3s_pcie_host *host)
11881188
if (ret)
11891189
return ret;
11901190

1191-
return devm_reset_control_bulk_get_exclusive(host->dev,
1192-
data->num_cfg_resets,
1193-
host->cfg_resets);
1191+
return devm_reset_control_bulk_get_optional_exclusive(host->dev,
1192+
data->num_cfg_resets,
1193+
host->cfg_resets);
11941194
}
11951195

11961196
static int rzg3s_pcie_host_parse_port(struct rzg3s_pcie_host *host)

0 commit comments

Comments
 (0)