Skip to content

Commit a0647bc

Browse files
Sumit Guptathierryreding
authored andcommitted
soc/tegra: cbb: Clear ERR_FORCE register with ERR_STATUS
When error is injected with the ERR_FORCE register, then this register is not auto cleared on clearing the ERR_STATUS register. This causes repeated interrupts on error injection. To fix, set the ERR_FORCE to zero along with clearing the ERR_STATUS register after handling error. Fixes: fc2f151 ("soc/tegra: cbb: Add driver for Tegra234 CBB 2.0") Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 7ddca45 commit a0647bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/soc/tegra/cbb/tegra234-cbb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ static void tegra234_cbb_error_clear(struct tegra_cbb *cbb)
185185
{
186186
struct tegra234_cbb *priv = to_tegra234_cbb(cbb);
187187

188+
writel(0, priv->mon + FABRIC_MN_MASTER_ERR_FORCE_0);
189+
188190
writel(0x3f, priv->mon + FABRIC_MN_MASTER_ERR_STATUS_0);
189191
dsb(sy);
190192
}

0 commit comments

Comments
 (0)