Commit c7b6cc6a3df2762f2c5550a32af545f80350ddcd

Authored by Peng Fan
Committed by Ye Li
1 parent 0d2e6a0e15

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>
(cherry picked from commit 5fb09cab9bb3cc4cef02239299d02cec666396ab)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/fec_mxc.c
... ... @@ -565,7 +565,7 @@
565 565 writel(0x00000000, &fec->eth->gaddr2);
566 566  
567 567 /* Do not access reserved register for i.MX6UL */
568   - if (!is_mx6ul()) {
  568 + if (!is_mx6ul() && !is_mx6ull()) {
569 569 /* clear MIB RAM */
570 570 for (i = mib_ptr; i <= mib_ptr + 0xfc; i += 4)
571 571 writel(0, i);