From: Greg Kroah-Hartman Date: Mon, 24 Apr 2023 06:29:08 +0000 (+0200) Subject: 5.15-stable patches X-Git-Tag: v4.14.314~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a52d28bf52b1d8ed0c8dea83e1e0c9d8efa64d0;p=thirdparty%2Fkernel%2Fstable-queue.git 5.15-stable patches added patches: pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch --- diff --git a/queue-5.15/pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch b/queue-5.15/pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch new file mode 100644 index 00000000000..e46b03c5ebb --- /dev/null +++ b/queue-5.15/pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch @@ -0,0 +1,36 @@ +From stable-owner@vger.kernel.org Mon Apr 24 07:20:56 2023 +From: "Uwe Kleine-König" +Date: Mon, 24 Apr 2023 07:20:37 +0200 +Subject: pwm: hibvt: Explicitly set .polarity in .get_state() +To: stable@vger.kernel.org +Cc: thierry.reding@gmail.com +Message-ID: <20230424052037.20895-2-u.kleine-koenig@pengutronix.de> + +From: "Uwe Kleine-König" + +[ Upstream commit 6f57937980142715e927697a6ffd2050f38ed6f6 ] + +The driver only both polarities. Complete the implementation of +.get_state() by setting .polarity according to the configured hardware +state. + +Fixes: d09f00810850 ("pwm: Add PWM driver for HiSilicon BVT SOCs") +Link: https://lore.kernel.org/r/20230228135508.1798428-2-u.kleine-koenig@pengutronix.de +Signed-off-by: Uwe Kleine-König +Signed-off-by: Thierry Reding +Signed-off-by: Uwe Kleine-König +Signed-off-by: Greg Kroah-Hartman +--- + drivers/pwm/pwm-hibvt.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/pwm/pwm-hibvt.c ++++ b/drivers/pwm/pwm-hibvt.c +@@ -146,6 +146,7 @@ static void hibvt_pwm_get_state(struct p + + value = readl(base + PWM_CTRL_ADDR(pwm->hwpwm)); + state->enabled = (PWM_ENABLE_MASK & value); ++ state->polarity = (PWM_POLARITY_MASK & value) ? PWM_POLARITY_INVERSED : PWM_POLARITY_NORMAL; + } + + static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, diff --git a/queue-5.15/pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch b/queue-5.15/pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch new file mode 100644 index 00000000000..6d33f5a303b --- /dev/null +++ b/queue-5.15/pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch @@ -0,0 +1,36 @@ +From stable-owner@vger.kernel.org Mon Apr 24 07:20:56 2023 +From: "Uwe Kleine-König" +Date: Mon, 24 Apr 2023 07:20:36 +0200 +Subject: pwm: iqs620a: Explicitly set .polarity in .get_state() +To: stable@vger.kernel.org +Cc: thierry.reding@gmail.com, Jeff LaBundy +Message-ID: <20230424052037.20895-1-u.kleine-koenig@pengutronix.de> + +From: "Uwe Kleine-König" + +[ Upstream commit b20b097128d9145fadcea1cbb45c4d186cb57466 ] + +The driver only supports normal polarity. Complete the implementation of +.get_state() by setting .polarity accordingly. + +Fixes: 6f0841a8197b ("pwm: Add support for Azoteq IQS620A PWM generator") +Reviewed-by: Jeff LaBundy +Link: https://lore.kernel.org/r/20230228135508.1798428-4-u.kleine-koenig@pengutronix.de +Signed-off-by: Uwe Kleine-König +Signed-off-by: Thierry Reding +Signed-off-by: Uwe Kleine-König +Signed-off-by: Greg Kroah-Hartman +--- + drivers/pwm/pwm-iqs620a.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/pwm/pwm-iqs620a.c ++++ b/drivers/pwm/pwm-iqs620a.c +@@ -126,6 +126,7 @@ static void iqs620_pwm_get_state(struct + mutex_unlock(&iqs620_pwm->lock); + + state->period = IQS620_PWM_PERIOD_NS; ++ state->polarity = PWM_POLARITY_NORMAL; + } + + static int iqs620_pwm_notifier(struct notifier_block *notifier, diff --git a/queue-5.15/series b/queue-5.15/series index b84bd5b50c1..e5902bd7250 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -61,3 +61,5 @@ inet6-remove-inet6_destroy_sock-in-sk-sk_prot-destroy.patch dccp-call-inet6_destroy_sock-via-sk-sk_destruct.patch sctp-call-inet6_destroy_sock-via-sk-sk_destruct.patch pwm-meson-explicitly-set-.polarity-in-.get_state.patch +pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch +pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch