Commit 5fb09cab9bb3cc4cef02239299d02cec666396ab
1 parent
3c5628ccf4
Exists in
smarc-rel_imx_4.1.15_2.0.0_ga
MLK-12766 net: fec: do not access reserved register for i.MX6ULL
The MIB RAM and FIFO receive start register does not exist on i.MX6ULL. Accessing these register will cause enet not work well or cause system report fault. Reported-by: Bai Ping <ping.bai@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/net/fec_mxc.c
... | ... | @@ -568,7 +568,7 @@ |
568 | 568 | |
569 | 569 | |
570 | 570 | /* Do not access reserved register for i.MX6UL */ |
571 | - if (!is_cpu_type(MXC_CPU_MX6UL)) { | |
571 | + if (!is_cpu_type(MXC_CPU_MX6UL) && !is_cpu_type(MXC_CPU_MX6ULL)) { | |
572 | 572 | /* clear MIB RAM */ |
573 | 573 | for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4) |
574 | 574 | writel(0, i); |