soc: ti: omap-prm: Fix reboot issue with invalid pcie reset map for dra7
authorTony Lindgren <tony@atomide.com>
Wed, 10 Feb 2021 08:37:51 +0000 (10:37 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Feb 2021 04:40:32 +0000 (06:40 +0200)
commita249ca66d15fa4b54dc6deaff4155df3db1308e1
tree81cc6eb856372149a9328e20c6da8cc04d38abb0
parentf40ddce88593482919761f74910f42f4b84c004b
soc: ti: omap-prm: Fix reboot issue with invalid pcie reset map for dra7

Yongqin Liu <yongqin.liu@linaro.org> reported an issue where reboot hangs
on beagleboard-x15. This started happening after commit 7078a5ba7a58
("soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1").

We now assert any 012 type resets on init to prevent unconfigured
accelerator MMUs getting enabled on init depending on the bootloader or
kexec configured state.

Turns out that we now also wrongly assert dra7 l3init domain PCIe reset
bits causing a hang during reboot. Let's fix the l3init reset bits to
use a 01 map instead of 012 map. There are only two rstctrl bits and not
three. This is documented in TRM "Table 3-1647. RM_PCIESS_RSTCTRL".

Fixes: 5a68c87afde0 ("soc: ti: omap-prm: dra7: add genpd support for remaining PRM instances")
Fixes: 7078a5ba7a58 ("soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1")
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Reported-by: Yongqin Liu <yongqin.liu@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/soc/ti/omap_prm.c