]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: baytrail: Enable pin configuration setting for GPIO chip
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 11 Dec 2019 17:32:54 +0000 (19:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:18:41 +0000 (08:18 +0200)
[ Upstream commit ccd025eaddaeb99e982029446197c544252108e2 ]

It appears that pin configuration for GPIO chip hasn't been enabled yet
due to absence of ->set_config() callback.

Enable it here for Intel Baytrail.

Fixes: c501d0b149de ("pinctrl: baytrail: Add pin control operations")
Depends-on: 2956b5d94a76 ("pinctrl / gpio: Introduce .set_config() callback for GPIO chips")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/intel/pinctrl-baytrail.c

index a760d8bda0af75b21ac0904caff6e8764bbbc91c..acb02a7aa94960330f1b5f548e5153d138e592f1 100644 (file)
@@ -1495,6 +1495,7 @@ static const struct gpio_chip byt_gpio_chip = {
        .direction_output       = byt_gpio_direction_output,
        .get                    = byt_gpio_get,
        .set                    = byt_gpio_set,
+       .set_config             = gpiochip_generic_config,
        .dbg_show               = byt_gpio_dbg_show,
 };