Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

+1 -4
+1 -4
drivers/bus/ti-sysc.c
··· 1692 1692 if (error) 1693 1693 return 0; 1694 1694 1695 - if (val) 1696 - ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; 1697 - else 1698 - ddata->cfg.sysc_val = ddata->cap->sysc_mask; 1695 + ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; 1699 1696 1700 1697 return 0; 1701 1698 }