]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: intel: Fix wrong bypass assignment in intel_pinctrl_probe_pwm()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Feb 2025 19:44:51 +0000 (21:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:37:32 +0000 (14:37 +0200)
[ Upstream commit 0eee258cdf172763502f142d85e967f27a573be0 ]

When instantiating PWM, the bypass should be set to false. The field
is used for the selected Intel SoCs that do not have PWM feature enabled
in their pin control IPs.

Fixes: eb78d3604d6b ("pinctrl: intel: Enumerate PWM device when community has a capability")
Reported-by: Alexis GUILLEMET <alexis.guillemet@dunasys.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Alexis GUILLEMET <alexis.guillemet@dunasys.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/intel/pinctrl-intel.c

index 3be04ab760d3f5d69b63d70258732f662fa36b7b..9775f6be1c1e6856188a958c66876e4839b104d9 100644 (file)
@@ -1524,7 +1524,6 @@ static int intel_pinctrl_probe_pwm(struct intel_pinctrl *pctrl,
                .clk_rate = 19200000,
                .npwm = 1,
                .base_unit_bits = 22,
-               .bypass = true,
        };
        struct pwm_lpss_chip *pwm;