Commit e6bf566352cc73ad38df9358032ada79f04136b6
1 parent
fdb4afb784
Exists in
ti-linux-3.12.y
and in
3 other branches
bus: omap_l3_noc: Add support for discountinous flag mux input numbers
On DRA7, unlike on OMAP4 and OMAP5, the flag mux input numbers used to indicate the source of errors are not continous. Have a way in the driver to catch these and WARN the user of the flag mux input thats either undocumented or wrong. Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
drivers/bus/omap_l3_noc.c
... | ... | @@ -82,6 +82,12 @@ |
82 | 82 | /* Identify the source from control status register */ |
83 | 83 | err_src = __ffs(err_reg); |
84 | 84 | |
85 | + if (*(l3->l3_targets[i] + err_src) == 0xdeadbeef) { | |
86 | + WARN(true, "L3 error for UN IDENTIFIED TARGET: %d\n", | |
87 | + err_src); | |
88 | + break; | |
89 | + } | |
90 | + | |
85 | 91 | /* Read the stderrlog_main_source from clk domain */ |
86 | 92 | l3_targ_base = base + *(l3->l3_targets[i] + err_src); |
87 | 93 | std_err_main = __raw_readl(l3_targ_base + |