summaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/common.c
diff options
context:
space:
mode:
authorManorit Chawdhry <m-chawdhry@ti.com>2023-07-14 11:22:27 +0530
committerTom Rini <trini@konsulko.com>2023-07-21 19:37:58 -0400
commit2bfd63d57b650672fd953023a018240c224a978b (patch)
tree6f7779d2d2de212e5606fdb31e0126bc5eaf7bb4 /arch/arm/mach-k3/common.c
parent40e09b6afb267d618f98a4f8afec2b5a0986dfed (diff)
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>
Diffstat (limited to 'arch/arm/mach-k3/common.c')
-rw-r--r--arch/arm/mach-k3/common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 450c7b7e4c0..a35110429b2 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -497,8 +497,7 @@ static void remove_fwl_regions(struct fwl_data fwl_data, size_t num_regions,
/* Don't disable the background regions */
if (region.control != 0 &&
- ((region.control & K3_FIREWALL_BACKGROUND_BIT) ==
- fwl_type)) {
+ ((region.control >> K3_FIREWALL_BACKGROUND_BIT) & 1) == fwl_type) {
pr_debug("Attempting to disable firewall %5d (%25s)\n",
region.fwl_id, fwl_data.name);
region.control = 0;