Patch "pinctrl: cy8c95x0: Fix get_pincfg" has been added to the 6.6-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

    pinctrl: cy8c95x0: Fix get_pincfg

to the 6.6-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:
     pinctrl-cy8c95x0-fix-get_pincfg.patch
and it can be found in the queue-6.6 subdirectory.

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



commit c9d57ce6313e0e5047a794931f4265525975832d
Author: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
Date:   Tue Dec 19 13:51:18 2023 +0100

    pinctrl: cy8c95x0: Fix get_pincfg
    
    [ Upstream commit 94c71705cc49092cef60ece13a28680809096fd4 ]
    
    Invert the register value for PIN_CONFIG_OUTPUT_ENABLE to return
    the opposite of PIN_CONFIG_INPUT_ENABLE.
    
    Signed-off-by: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20231219125120.4028862-3-patrick.rudolph@xxxxxxxxxxxxx
    Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c
index 280d7ebd50b7..f2b9db66fdb6 100644
--- a/drivers/pinctrl/pinctrl-cy8c95x0.c
+++ b/drivers/pinctrl/pinctrl-cy8c95x0.c
@@ -714,6 +714,8 @@ static int cy8c95x0_gpio_get_pincfg(struct cy8c95x0_pinctrl *chip,
 	ret = regmap_read(chip->regmap, reg, &reg_val);
 	if (reg_val & bit)
 		arg = 1;
+	if (param == PIN_CONFIG_OUTPUT_ENABLE)
+		arg = !arg;
 
 	*config = pinconf_to_config_packed(param, (u16)arg);
 out:




[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