]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Apr 2023 06:29:08 +0000 (08:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Apr 2023 06:29:08 +0000 (08:29 +0200)
added patches:
pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch
pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch

queue-5.15/pwm-hibvt-explicitly-set-.polarity-in-.get_state.patch [new file with mode: 0644]
queue-5.15/pwm-iqs620a-explicitly-set-.polarity-in-.get_state.patch [new file with mode: 0644]
queue-5.15/series

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 (file)
index 0000000..e46b03c
--- /dev/null
@@ -0,0 +1,36 @@
+From stable-owner@vger.kernel.org Mon Apr 24 07:20:56 2023
+From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
+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" <u.kleine-koenig@pengutronix.de>
+
+[ 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 <u.kleine-koenig@pengutronix.de>
+Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
+Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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 (file)
index 0000000..6d33f5a
--- /dev/null
@@ -0,0 +1,36 @@
+From stable-owner@vger.kernel.org Mon Apr 24 07:20:56 2023
+From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
+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 <jeff@labundy.com>
+Message-ID: <20230424052037.20895-1-u.kleine-koenig@pengutronix.de>
+
+From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
+
+[ 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 <jeff@labundy.com>
+Link: https://lore.kernel.org/r/20230228135508.1798428-4-u.kleine-koenig@pengutronix.de
+Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
+Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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,
index b84bd5b50c12d3942a2aeb6a954c4e8314ed1c44..e5902bd72500f6a058bf9fe75d9362aac6451cdb 100644 (file)
@@ -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