From bb51cf9ec6482b50f3020179965ef82f58d91a0a Mon Sep 17 00:00:00 2001 From: Supriya Date: Tue, 10 Mar 2015 13:57:49 +0530 Subject: gpu: nvgpu: Skip reg read of gpc2clk Bug 200066741 As we are just getting out of reset and this reg is not written before, so we dont stand the risk of loosing any data Change-Id: Ifc1bcaa3c224038e4e2a47882a4523f7633cb660 Signed-off-by: Supriya Reviewed-on: http://git-master/r/715652 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c index 9d82a986..c893c681 100644 --- a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c @@ -26,12 +26,14 @@ void gk20a_reset_priv_ring(struct gk20a *g) { - u32 data; + u32 data = 0; if (tegra_platform_is_linsim()) return; - data = gk20a_readl(g, trim_sys_gpc2clk_out_r()); + /* Skipping read and then writeback to this reg, as we are just getting + * out of reset, and before this call, the reg is not written to*/ + data = set_field(data, trim_sys_gpc2clk_out_bypdiv_m(), trim_sys_gpc2clk_out_bypdiv_f(0)); -- cgit v1.2.2