]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 4.19
authorSasha Levin <sashal@kernel.org>
Fri, 17 Jul 2020 17:15:27 +0000 (13:15 -0400)
committerSasha Levin <sashal@kernel.org>
Fri, 17 Jul 2020 17:15:27 +0000 (13:15 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.19/revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch [new file with mode: 0644]
queue-4.19/revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch [new file with mode: 0644]
queue-4.19/revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch b/queue-4.19/revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch
new file mode 100644 (file)
index 0000000..f019053
--- /dev/null
@@ -0,0 +1,55 @@
+From ec08a2b0afaaeef06472af265b0b988e71cf317a Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Fri, 17 Jul 2020 12:59:31 -0400
+Subject: Revert "usb/ehci-platform: Set PM runtime as active on resume"
+
+This reverts commit 71f660a1a74b2eae7896f18f31b68e9c4f4eaea3.
+
+Eugeniu Rosca writes:
+
+On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote:
+>After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform:
+>Set PM runtime as active on resume") into downstream v4.14.x, we started
+>to consistently experience below panic [1] on every second s2ram of
+>R-Car H3 Salvator-X Renesas reference board.
+>
+>After some investigations, we concluded the following:
+> - the issue does not exist in vanilla v5.8-rc4+
+> - [bisecting shows that] the panic on v4.14.186 is caused by the lack
+>   of v5.6-rc1 commit 987351e1ea7772 ("phy: core: Add consumer device
+>   link support"). Getting evidence for that is easy. Reverting
+>   987351e1ea7772 in vanilla leads to a similar backtrace [2].
+>
+>Questions:
+> - Backporting 987351e1ea7772 ("phy: core: Add consumer device
+>   link support") to v4.14.187 looks challenging enough, so probably not
+>   worth it. Anybody to contradict this?
+> - Assuming no plans to backport the missing mainline commit to v4.14.x,
+>   should the following three v4.14.186 commits be reverted on v4.14.x?
+>   * baef809ea497a4 ("usb/ohci-platform: Fix a warning when hibernating")
+>   * 9f33eff4958885 ("usb/xhci-plat: Set PM runtime as active on resume")
+>   * 5410d158ca2a50 ("usb/ehci-platform: Set PM runtime as active on resume")
+
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/usb/host/ehci-platform.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c
+index cbc45941a699d..8a45362155c5a 100644
+--- a/drivers/usb/host/ehci-platform.c
++++ b/drivers/usb/host/ehci-platform.c
+@@ -457,10 +457,6 @@ static int ehci_platform_resume(struct device *dev)
+       ehci_resume(hcd, priv->reset_on_resume);
+-      pm_runtime_disable(dev);
+-      pm_runtime_set_active(dev);
+-      pm_runtime_enable(dev);
+-
+       if (priv->quirk_poll)
+               quirk_poll_init(priv);
+-- 
+2.25.1
+
diff --git a/queue-4.19/revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch b/queue-4.19/revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch
new file mode 100644 (file)
index 0000000..20aec31
--- /dev/null
@@ -0,0 +1,56 @@
+From fdae99e4cfa515f14632bf37e960ac19824ebb89 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Fri, 17 Jul 2020 12:58:32 -0400
+Subject: Revert "usb/ohci-platform: Fix a warning when hibernating"
+
+This reverts commit c83258a757687ffccce37ed73dba56cc6d4b8a1b.
+
+Eugeniu Rosca writes:
+
+On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote:
+>After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform:
+>Set PM runtime as active on resume") into downstream v4.14.x, we started
+>to consistently experience below panic [1] on every second s2ram of
+>R-Car H3 Salvator-X Renesas reference board.
+>
+>After some investigations, we concluded the following:
+> - the issue does not exist in vanilla v5.8-rc4+
+> - [bisecting shows that] the panic on v4.14.186 is caused by the lack
+>   of v5.6-rc1 commit 987351e1ea7772 ("phy: core: Add consumer device
+>   link support"). Getting evidence for that is easy. Reverting
+>   987351e1ea7772 in vanilla leads to a similar backtrace [2].
+>
+>Questions:
+> - Backporting 987351e1ea7772 ("phy: core: Add consumer device
+>   link support") to v4.14.187 looks challenging enough, so probably not
+>   worth it. Anybody to contradict this?
+> - Assuming no plans to backport the missing mainline commit to v4.14.x,
+>   should the following three v4.14.186 commits be reverted on v4.14.x?
+>   * baef809ea497a4 ("usb/ohci-platform: Fix a warning when hibernating")
+>   * 9f33eff4958885 ("usb/xhci-plat: Set PM runtime as active on resume")
+>   * 5410d158ca2a50 ("usb/ehci-platform: Set PM runtime as active on resume")
+
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/usb/host/ohci-platform.c | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c
+index f40112c5920d1..65a1c3fdc88c6 100644
+--- a/drivers/usb/host/ohci-platform.c
++++ b/drivers/usb/host/ohci-platform.c
+@@ -301,11 +301,6 @@ static int ohci_platform_resume(struct device *dev)
+       }
+       ohci_resume(hcd, false);
+-
+-      pm_runtime_disable(dev);
+-      pm_runtime_set_active(dev);
+-      pm_runtime_enable(dev);
+-
+       return 0;
+ }
+ #endif /* CONFIG_PM_SLEEP */
+-- 
+2.25.1
+
diff --git a/queue-4.19/revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch b/queue-4.19/revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch
new file mode 100644 (file)
index 0000000..157b708
--- /dev/null
@@ -0,0 +1,61 @@
+From 0b8b66289b56d071c7246d3768b8b76a81fbc681 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Fri, 17 Jul 2020 12:59:13 -0400
+Subject: Revert "usb/xhci-plat: Set PM runtime as active on resume"
+
+This reverts commit 661f5686a1c805e9b1bff65c312c38ef97faa91d.
+
+Eugeniu Rosca writes:
+
+On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote:
+>After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform:
+>Set PM runtime as active on resume") into downstream v4.14.x, we started
+>to consistently experience below panic [1] on every second s2ram of
+>R-Car H3 Salvator-X Renesas reference board.
+>
+>After some investigations, we concluded the following:
+> - the issue does not exist in vanilla v5.8-rc4+
+> - [bisecting shows that] the panic on v4.14.186 is caused by the lack
+>   of v5.6-rc1 commit 987351e1ea7772 ("phy: core: Add consumer device
+>   link support"). Getting evidence for that is easy. Reverting
+>   987351e1ea7772 in vanilla leads to a similar backtrace [2].
+>
+>Questions:
+> - Backporting 987351e1ea7772 ("phy: core: Add consumer device
+>   link support") to v4.14.187 looks challenging enough, so probably not
+>   worth it. Anybody to contradict this?
+> - Assuming no plans to backport the missing mainline commit to v4.14.x,
+>   should the following three v4.14.186 commits be reverted on v4.14.x?
+>   * baef809ea497a4 ("usb/ohci-platform: Fix a warning when hibernating")
+>   * 9f33eff4958885 ("usb/xhci-plat: Set PM runtime as active on resume")
+>   * 5410d158ca2a50 ("usb/ehci-platform: Set PM runtime as active on resume"
+
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/usb/host/xhci-plat.c | 10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
+index 65972c186c641..adc437ca83b88 100644
+--- a/drivers/usb/host/xhci-plat.c
++++ b/drivers/usb/host/xhci-plat.c
+@@ -408,15 +408,7 @@ static int __maybe_unused xhci_plat_resume(struct device *dev)
+       if (ret)
+               return ret;
+-      ret = xhci_resume(xhci, 0);
+-      if (ret)
+-              return ret;
+-
+-      pm_runtime_disable(dev);
+-      pm_runtime_set_active(dev);
+-      pm_runtime_enable(dev);
+-
+-      return 0;
++      return xhci_resume(xhci, 0);
+ }
+ static int __maybe_unused xhci_plat_runtime_suspend(struct device *dev)
+-- 
+2.25.1
+
index 59d323fb7893add7cfbe2e02994fd3bd85704032..9167bb13553337851430126a94a8da148edc71af 100644 (file)
@@ -39,3 +39,6 @@ spi-fix-initial-spi_sr-value-in-spi-fsl-dspi.patch
 spi-spi-fsl-dspi-fix-lockup-if-device-is-shutdown-du.patch
 net-dsa-bcm_sf2-fix-node-reference-count.patch
 of-of_mdio-correct-loop-scanning-logic.patch
+revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch
+revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch
+revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch