mtd: nand: tango: Reset pbus to raw mode in probe
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/nand/tango_nand.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mtd/nand/tango_nand.c +2 -0
@@ -644,6 +644,8 @@ static int tango_nand_probe(struct platform_device *pdev)if (IS_ERR (nfc->pbus_base))return PTR_ERR (nfc->pbus_base); +writel_relaxed (MODE_RAW , nfc->pbus_base +PBUS_PAD_MODE ); + clk =clk_get (&pdev->dev,NULL );if (IS_ERR (clk))return PTR_ERR (clk);
Boris Brezillon
AppliedPATCH 1/1 mtd: nand: tango: Reset pbus to raw mode in probe
Quoted 3 lines · On Tue, 3 Jan 2017 11:01:14 +0100 Marc Gonzalez…
Linux should not expect the boot loader to properly configure the peripheral bus "pad mode", so reset
PBUS_PAD_MODEto raw.
Applied to nand/fixes.
Thanks,
Boris
Quoted 19 lines
Signed-off-by Marc Gonzalez <[email protected]>--- drivers/mtd/nand/tango_nand.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mtd/nand/tango_nand.c +2
-0@@ -644,6 +644,8 @@ static int tango_nand_probe(struct platform_device *pdev)if (IS_ERR (nfc->pbus_base))return PTR_ERR (nfc->pbus_base); +writel_relaxed (MODE_RAW , nfc->pbus_base +PBUS_PAD_MODE ); + clk =clk_get (&pdev->dev,NULL );if (IS_ERR (clk))return PTR_ERR (clk);