Skip to contentSkip to conversation

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

PATCH New Marc Gonzalez 2 participants 2 messages Jan 3, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/mtd/nand/tango_nand.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/nand/tango_nand.c +2 -0
index d370c0382808..2456640fe4d5 100644
@@ -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);
#1 lore raw

PATCH 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_MODE to raw.

Applied to nand/fixes.

Thanks,

Boris

Quoted 19 lines
---
 drivers/mtd/nand/tango_nand.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/nand/tango_nand.c +2 -0
index d370c0382808..2456640fe4d5 100644
@@ -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);