Patch "gpio/mpc8xxx: fix qoriq GPIO reading" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    gpio/mpc8xxx: fix qoriq GPIO reading

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     gpio-mpc8xxx-fix-qoriq-gpio-reading.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit db67533cfdba9397a842bd15ee19c4ec0cd5211c
Author: Russell King <rmk+kernel@xxxxxxxxxxxxxxx>
Date:   Tue Nov 19 13:10:38 2019 +0000

    gpio/mpc8xxx: fix qoriq GPIO reading
    
    [ Upstream commit 787b64a43f7acacf8099329ea08872e663f1e74f ]
    
    Qoriq requires the IBE register to be set to enable GPIO inputs to be
    read.  Set it.
    
    Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/E1iX3HC-00069N-0T@xxxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c
index 16a47de29c94..b863421ae730 100644
--- a/drivers/gpio/gpio-mpc8xxx.c
+++ b/drivers/gpio/gpio-mpc8xxx.c
@@ -386,6 +386,9 @@ static int mpc8xxx_probe(struct platform_device *pdev)
 
 	gc->to_irq = mpc8xxx_gpio_to_irq;
 
+	if (of_device_is_compatible(np, "fsl,qoriq-gpio"))
+		gc->write_reg(mpc8xxx_gc->regs + GPIO_IBE, 0xffffffff);
+
 	ret = gpiochip_add_data(gc, mpc8xxx_gc);
 	if (ret) {
 		pr_err("%pOF: GPIO chip registration failed with status %d\n",



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux