+++ /dev/null
-From 020162d6f49f2963062229814a56a89c86cbeaa8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
-Date: Wed, 7 Jul 2021 18:27:50 +0200
-Subject: pwm: mxs: Don't modify HW state in .probe() after the PWM chip was registered
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-commit 020162d6f49f2963062229814a56a89c86cbeaa8 upstream.
-
-This fixes a race condition: After pwmchip_add() is called there might
-already be a consumer and then modifying the hardware behind the
-consumer's back is bad. So reset before calling pwmchip_add().
-
-Note that reseting the hardware isn't the right thing to do if the PWM
-is already running as it might e.g. disable (or even enable) a backlight
-that is supposed to be on (or off).
-
-Fixes: 4dce82c1e840 ("pwm: add pwm-mxs support")
-Cc: Sascha Hauer <s.hauer@pengutronix.de>
-Cc: Shawn Guo <shawnguo@kernel.org>
-Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/pwm/pwm-mxs.c | 13 +++++--------
- 1 file changed, 5 insertions(+), 8 deletions(-)
-
---- a/drivers/pwm/pwm-mxs.c
-+++ b/drivers/pwm/pwm-mxs.c
-@@ -158,6 +158,11 @@ static int mxs_pwm_probe(struct platform
- return ret;
- }
-
-+ /* FIXME: Only do this if the PWM isn't already running */
-+ ret = stmp_reset_block(mxs->base);
-+ if (ret)
-+ return dev_err_probe(&pdev->dev, ret, "failed to reset PWM\n");
-+
- ret = pwmchip_add(&mxs->chip);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to add pwm chip %d\n", ret);
-@@ -166,15 +171,7 @@ static int mxs_pwm_probe(struct platform
-
- platform_set_drvdata(pdev, mxs);
-
-- ret = stmp_reset_block(mxs->base);
-- if (ret)
-- goto pwm_remove;
--
- return 0;
--
--pwm_remove:
-- pwmchip_remove(&mxs->chip);
-- return ret;
- }
-
- static int mxs_pwm_remove(struct platform_device *pdev)
prctl-allow-to-setup-brk-for-et_dyn-executables.patch
profiling-fix-shift-out-of-bounds-bugs.patch
pwm-lpc32xx-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
-pwm-mxs-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
kconfig.debug-drop-selecting-non-existing-hardlockup.patch
parisc-move-pci_dev_is_behind_card_dino-to-where-it-.patch
dmaengine-ioat-depends-on-uml.patch
+++ /dev/null
-From 020162d6f49f2963062229814a56a89c86cbeaa8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
-Date: Wed, 7 Jul 2021 18:27:50 +0200
-Subject: pwm: mxs: Don't modify HW state in .probe() after the PWM chip was registered
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-commit 020162d6f49f2963062229814a56a89c86cbeaa8 upstream.
-
-This fixes a race condition: After pwmchip_add() is called there might
-already be a consumer and then modifying the hardware behind the
-consumer's back is bad. So reset before calling pwmchip_add().
-
-Note that reseting the hardware isn't the right thing to do if the PWM
-is already running as it might e.g. disable (or even enable) a backlight
-that is supposed to be on (or off).
-
-Fixes: 4dce82c1e840 ("pwm: add pwm-mxs support")
-Cc: Sascha Hauer <s.hauer@pengutronix.de>
-Cc: Shawn Guo <shawnguo@kernel.org>
-Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/pwm/pwm-mxs.c | 13 +++++--------
- 1 file changed, 5 insertions(+), 8 deletions(-)
-
---- a/drivers/pwm/pwm-mxs.c
-+++ b/drivers/pwm/pwm-mxs.c
-@@ -152,6 +152,11 @@ static int mxs_pwm_probe(struct platform
- return ret;
- }
-
-+ /* FIXME: Only do this if the PWM isn't already running */
-+ ret = stmp_reset_block(mxs->base);
-+ if (ret)
-+ return dev_err_probe(&pdev->dev, ret, "failed to reset PWM\n");
-+
- ret = pwmchip_add(&mxs->chip);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to add pwm chip %d\n", ret);
-@@ -160,15 +165,7 @@ static int mxs_pwm_probe(struct platform
-
- platform_set_drvdata(pdev, mxs);
-
-- ret = stmp_reset_block(mxs->base);
-- if (ret)
-- goto pwm_remove;
--
- return 0;
--
--pwm_remove:
-- pwmchip_remove(&mxs->chip);
-- return ret;
- }
-
- static int mxs_pwm_remove(struct platform_device *pdev)
nilfs2-use-refcount_dec_and_lock-to-fix-potential-uaf.patch
profiling-fix-shift-out-of-bounds-bugs.patch
pwm-lpc32xx-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
-pwm-mxs-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
kconfig.debug-drop-selecting-non-existing-hardlockup.patch
drivers-base-cacheinfo-get-rid-of-define_smp_call_ca.patch
parisc-move-pci_dev_is_behind_card_dino-to-where-it-.patch
+++ /dev/null
-From 020162d6f49f2963062229814a56a89c86cbeaa8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
-Date: Wed, 7 Jul 2021 18:27:50 +0200
-Subject: pwm: mxs: Don't modify HW state in .probe() after the PWM chip was registered
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-commit 020162d6f49f2963062229814a56a89c86cbeaa8 upstream.
-
-This fixes a race condition: After pwmchip_add() is called there might
-already be a consumer and then modifying the hardware behind the
-consumer's back is bad. So reset before calling pwmchip_add().
-
-Note that reseting the hardware isn't the right thing to do if the PWM
-is already running as it might e.g. disable (or even enable) a backlight
-that is supposed to be on (or off).
-
-Fixes: 4dce82c1e840 ("pwm: add pwm-mxs support")
-Cc: Sascha Hauer <s.hauer@pengutronix.de>
-Cc: Shawn Guo <shawnguo@kernel.org>
-Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/pwm/pwm-mxs.c | 13 +++++--------
- 1 file changed, 5 insertions(+), 8 deletions(-)
-
---- a/drivers/pwm/pwm-mxs.c
-+++ b/drivers/pwm/pwm-mxs.c
-@@ -158,6 +158,11 @@ static int mxs_pwm_probe(struct platform
- return ret;
- }
-
-+ /* FIXME: Only do this if the PWM isn't already running */
-+ ret = stmp_reset_block(mxs->base);
-+ if (ret)
-+ return dev_err_probe(&pdev->dev, ret, "failed to reset PWM\n");
-+
- ret = pwmchip_add(&mxs->chip);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to add pwm chip %d\n", ret);
-@@ -166,15 +171,7 @@ static int mxs_pwm_probe(struct platform
-
- platform_set_drvdata(pdev, mxs);
-
-- ret = stmp_reset_block(mxs->base);
-- if (ret)
-- goto pwm_remove;
--
- return 0;
--
--pwm_remove:
-- pwmchip_remove(&mxs->chip);
-- return ret;
- }
-
- static int mxs_pwm_remove(struct platform_device *pdev)
9p-trans_virtio-remove-sysfs-file-on-probe-failure.patch
prctl-allow-to-setup-brk-for-et_dyn-executables.patch
profiling-fix-shift-out-of-bounds-bugs.patch
-pwm-mxs-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
dmaengine-acpi-dma-check-for-64-bit-mmio-address.patch
dmaengine-acpi-avoid-comparison-gsi-with-linux-virq.patch
parisc-move-pci_dev_is_behind_card_dino-to-where-it-.patch
+++ /dev/null
-From 020162d6f49f2963062229814a56a89c86cbeaa8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
-Date: Wed, 7 Jul 2021 18:27:50 +0200
-Subject: pwm: mxs: Don't modify HW state in .probe() after the PWM chip was registered
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-commit 020162d6f49f2963062229814a56a89c86cbeaa8 upstream.
-
-This fixes a race condition: After pwmchip_add() is called there might
-already be a consumer and then modifying the hardware behind the
-consumer's back is bad. So reset before calling pwmchip_add().
-
-Note that reseting the hardware isn't the right thing to do if the PWM
-is already running as it might e.g. disable (or even enable) a backlight
-that is supposed to be on (or off).
-
-Fixes: 4dce82c1e840 ("pwm: add pwm-mxs support")
-Cc: Sascha Hauer <s.hauer@pengutronix.de>
-Cc: Shawn Guo <shawnguo@kernel.org>
-Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/pwm/pwm-mxs.c | 13 +++++--------
- 1 file changed, 5 insertions(+), 8 deletions(-)
-
---- a/drivers/pwm/pwm-mxs.c
-+++ b/drivers/pwm/pwm-mxs.c
-@@ -158,6 +158,11 @@ static int mxs_pwm_probe(struct platform
- return ret;
- }
-
-+ /* FIXME: Only do this if the PWM isn't already running */
-+ ret = stmp_reset_block(mxs->base);
-+ if (ret)
-+ return dev_err_probe(&pdev->dev, ret, "failed to reset PWM\n");
-+
- ret = pwmchip_add(&mxs->chip);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to add pwm chip %d\n", ret);
-@@ -166,15 +171,7 @@ static int mxs_pwm_probe(struct platform
-
- platform_set_drvdata(pdev, mxs);
-
-- ret = stmp_reset_block(mxs->base);
-- if (ret)
-- goto pwm_remove;
--
- return 0;
--
--pwm_remove:
-- pwmchip_remove(&mxs->chip);
-- return ret;
- }
-
- static int mxs_pwm_remove(struct platform_device *pdev)
prctl-allow-to-setup-brk-for-et_dyn-executables.patch
profiling-fix-shift-out-of-bounds-bugs.patch
pwm-lpc32xx-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
-pwm-mxs-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
parisc-move-pci_dev_is_behind_card_dino-to-where-it-.patch
dmaengine-ioat-depends-on-uml.patch
dmaengine-xilinx_dma-set-dma-mask-for-coherent-apis.patch
+++ /dev/null
-From 020162d6f49f2963062229814a56a89c86cbeaa8 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
-Date: Wed, 7 Jul 2021 18:27:50 +0200
-Subject: pwm: mxs: Don't modify HW state in .probe() after the PWM chip was registered
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-
-commit 020162d6f49f2963062229814a56a89c86cbeaa8 upstream.
-
-This fixes a race condition: After pwmchip_add() is called there might
-already be a consumer and then modifying the hardware behind the
-consumer's back is bad. So reset before calling pwmchip_add().
-
-Note that reseting the hardware isn't the right thing to do if the PWM
-is already running as it might e.g. disable (or even enable) a backlight
-that is supposed to be on (or off).
-
-Fixes: 4dce82c1e840 ("pwm: add pwm-mxs support")
-Cc: Sascha Hauer <s.hauer@pengutronix.de>
-Cc: Shawn Guo <shawnguo@kernel.org>
-Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/pwm/pwm-mxs.c | 13 +++++--------
- 1 file changed, 5 insertions(+), 8 deletions(-)
-
---- a/drivers/pwm/pwm-mxs.c
-+++ b/drivers/pwm/pwm-mxs.c
-@@ -150,6 +150,11 @@ static int mxs_pwm_probe(struct platform
- return ret;
- }
-
-+ /* FIXME: Only do this if the PWM isn't already running */
-+ ret = stmp_reset_block(mxs->base);
-+ if (ret)
-+ return dev_err_probe(&pdev->dev, ret, "failed to reset PWM\n");
-+
- ret = pwmchip_add(&mxs->chip);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to add pwm chip %d\n", ret);
-@@ -158,15 +163,7 @@ static int mxs_pwm_probe(struct platform
-
- platform_set_drvdata(pdev, mxs);
-
-- ret = stmp_reset_block(mxs->base);
-- if (ret)
-- goto pwm_remove;
--
- return 0;
--
--pwm_remove:
-- pwmchip_remove(&mxs->chip);
-- return ret;
- }
-
- static int mxs_pwm_remove(struct platform_device *pdev)
nilfs2-use-refcount_dec_and_lock-to-fix-potential-uaf.patch
profiling-fix-shift-out-of-bounds-bugs.patch
pwm-lpc32xx-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
-pwm-mxs-don-t-modify-hw-state-in-.probe-after-the-pwm-chip-was-registered.patch
phy-avoid-unnecessary-link-up-delay-in-polling-mode.patch
net-stmmac-reset-tx-desc-base-address-before-restarting-tx.patch
kconfig.debug-drop-selecting-non-existing-hardlockup.patch