]> git.ipfire.org Git - thirdparty/u-boot.git/commit
pci: pcie-rcar-gen4: Assure reset occurs before DBI access
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 24 Sep 2025 01:47:13 +0000 (03:47 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 25 Sep 2025 21:19:17 +0000 (23:19 +0200)
commit38541b5db5b1de67f5fbab3d9971ac7ba818cb46
tree337eb87bccc036370f09cad58ee3ca3338096862
parenteb69747cd231767098d4ad7957fbedad6a42af99
pci: pcie-rcar-gen4: Assure reset occurs before DBI access

Assure the reset is latched and the core is ready for DBI access.
On R-Car V4H, the PCIe reset is asynchronized and does not take
effect immediately, but needs a short time to complete. In case
DBI access happens in that short time, that access generates an
SError. Make sure that condition can never happen, read back the
state of the reset which should turn the asynchronized reset into
synchronized one, and wait a little over 1ms to add additional
safety margin.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/pci/pci-rcar-gen4.c