From 06f54be8c979720515d22e24cb4a20868af45f59 Mon Sep 17 00:00:00 2001 From: Amulya Date: Tue, 14 Aug 2018 10:30:46 +0530 Subject: gpu: nvgpu: Fix MISRA 10.1-Using boolean as a bit Fix violations where a boolean is used as an operand in bit-shift operations and is interpreted as a numerical value. JIRA NVGPU-649 Change-Id: I4494c3b69d0e53319331b47d0a4de0b3de279f4f Signed-off-by: Amulya Reviewed-on: https://git-master.nvidia.com/r/1799322 Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Tested-by: Amulya Murthyreddy Reviewed-by: Amulya Murthyreddy Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/flcn_gk20a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/flcn_gk20a.c b/drivers/gpu/nvgpu/gk20a/flcn_gk20a.c index 92f88333..e6e16511 100644 --- a/drivers/gpu/nvgpu/gk20a/flcn_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/flcn_gk20a.c @@ -361,11 +361,11 @@ static int gk20a_flcn_copy_to_imem(struct nvgpu_falcon *flcn, u32 dst, words, dst, blk, tag); gk20a_writel(g, base_addr + falcon_falcon_imemc_r(port), - falcon_falcon_imemc_offs_f(dst >> 2) | - falcon_falcon_imemc_blk_f(blk) | - /* Set Auto-Increment on write */ - falcon_falcon_imemc_aincw_f(1) | - sec << 28); + falcon_falcon_imemc_offs_f(dst >> 2) | + falcon_falcon_imemc_blk_f(blk) | + /* Set Auto-Increment on write */ + falcon_falcon_imemc_aincw_f(1) | + falcon_falcon_imemc_secure_f(sec ? 1U : 0U)); for (i = 0; i < words; i++) { if (i % 64 == 0) { -- cgit v1.2.2