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

mtd: nand: tango: Reset pbus to raw mode in probe

Linux should not expect the boot loader to properly configure the
peripheral bus "pad mode", so reset PBUS_PAD_MODE to raw.

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Marc Gonzalez and committed by
Boris Brezillon
8043d25b 7165b8ad

+2
+2
drivers/mtd/nand/tango_nand.c
··· 632 632 if (IS_ERR(nfc->pbus_base)) 633 633 return PTR_ERR(nfc->pbus_base); 634 634 635 + writel_relaxed(MODE_RAW, nfc->pbus_base + PBUS_PAD_MODE); 636 + 635 637 clk = clk_get(&pdev->dev, NULL); 636 638 if (IS_ERR(clk)) 637 639 return PTR_ERR(clk);