From e1f7d22b8b52fc08c4d17a6a7db1e664281aed63 Mon Sep 17 00:00:00 2001 From: Ed Swarthout Date: Thu, 9 Oct 2008 01:25:55 -0500 Subject: [PATCH] fsl_law clear enable before changing. Debug sessions may have left enabled laws. Changing lawbar with an unkown enabled tgtid could cause problems. Signed-off-by: Ed Swarthout --- drivers/misc/fsl_law.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/fsl_law.c b/drivers/misc/fsl_law.c index 64df1c9889..44c9e91cdb 100644 --- a/drivers/misc/fsl_law.c +++ b/drivers/misc/fsl_law.c @@ -52,6 +52,7 @@ void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id) gd->used_laws |= (1 << idx); + out_be32(lawar, 0); out_be32(lawbar, addr >> 12); out_be32(lawar, LAWAR_EN | ((u32)id << 20) | (u32)sz); -- 2.25.1