Commit 0b65071afaae9d6a49fb7dda2902f5c8bcd678c2

Authored by Ye Li
1 parent 8cdf030f2c

MLK-12865 Nand: Fix BCH debug1 register access issue

Should have "&" to access the register address, otherwise uboot will hang.

Signed-off-by: Ye Li <ye.li@nxp.com>

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

drivers/mtd/nand/mxs_nand.c
... ... @@ -800,7 +800,7 @@
800 800 if (status[i] == 0xff) {
801 801 if (is_mx6dqp() || is_soc_type(MXC_SOC_MX7) ||
802 802 is_cpu_type(MXC_CPU_MX6UL))
803   - if (readl(bch_regs->hw_bch_debug1))
  803 + if (readl(&bch_regs->hw_bch_debug1))
804 804 flag = 1;
805 805 continue;
806 806 }