fsl_law clear enable before changing.
PATCH 1/1 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 <[email protected]>
--- drivers/misc/fsl_law.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/misc/fsl_law.c +1 -0
@@ -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);
Signature · 1 line
1.5.6.5
Andy Fleming
AppliedPATCH 1/1 fsl_law clear enable before changing.
Quoted 4 lines · Ed Swarthout
Debug sessions may have left enabled laws.
Changing lawbar with an unkown enabled tgtid could cause problems.Signed-off-by Ed Swarthout <[email protected]>
Applied to 85xx-next