Skip to content

Commit 787b64a

Browse files
Russell Kinglinusw
authored andcommitted
gpio/mpc8xxx: fix qoriq GPIO reading
Qoriq requires the IBE register to be set to enable GPIO inputs to be read. Set it. Signed-off-by: Russell King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 4e50573 commit 787b64a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpio/gpio-mpc8xxx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ static int mpc8xxx_probe(struct platform_device *pdev)
387387

388388
gc->to_irq = mpc8xxx_gpio_to_irq;
389389

390+
if (of_device_is_compatible(np, "fsl,qoriq-gpio"))
391+
gc->write_reg(mpc8xxx_gc->regs + GPIO_IBE, 0xffffffff);
392+
390393
ret = gpiochip_add_data(gc, mpc8xxx_gc);
391394
if (ret) {
392395
pr_err("%pOF: GPIO chip registration failed with status %d\n",

0 commit comments

Comments
 (0)