mach-k3: common: correct the calculations for determining firewalls
authorManorit Chawdhry <m-chawdhry@ti.com>
Fri, 14 Jul 2023 05:52:27 +0000 (11:22 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jul 2023 23:37:58 +0000 (19:37 -0400)
commit2bfd63d57b650672fd953023a018240c224a978b
tree6f7779d2d2de212e5606fdb31e0126bc5eaf7bb4
parent40e09b6afb267d618f98a4f8afec2b5a0986dfed
mach-k3: common: correct the calculations for determining firewalls

The background firewall calculations were wrong, fix that to determine
both the background and foreground correctly.

Fixes: 8bfce2f9989f ("arm: mach-k3: common: reorder removal of firewalls")

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common.h