From: Tony Lindgren Date: Mon, 22 Jul 2019 10:44:52 +0000 (-0700) Subject: bus: ti-sysc: Fix using configured sysc mask value X-Git-Tag: v5.15~5471^2~14^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e212abd452a4af3174fcd469d46656f83e135a19;p=platform%2Fkernel%2Flinux-starfive.git bus: ti-sysc: Fix using configured sysc mask value We have cases where there are no softreset bits like with am335x lcdc. In that case ti,sysc-mask = <0> needs to be handled properly. Tested-by: Keerthy Signed-off-by: Tony Lindgren --- diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 78fb52e..4963c77 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1692,10 +1692,7 @@ static int sysc_init_sysc_mask(struct sysc *ddata) if (error) return 0; - if (val) - ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; - else - ddata->cfg.sysc_val = ddata->cap->sysc_mask; + ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; return 0; }