From: Sasha Levin Date: Fri, 17 Jul 2020 17:15:28 +0000 (-0400) Subject: Fixes for 4.9 X-Git-Tag: v4.4.231~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a426eea4fc34b5ac462bdca57d937f1b39ee368;p=thirdparty%2Fkernel%2Fstable-queue.git Fixes for 4.9 Signed-off-by: Sasha Levin --- diff --git a/queue-4.9/revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch b/queue-4.9/revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch new file mode 100644 index 00000000000..d938dcd4bb6 --- /dev/null +++ b/queue-4.9/revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch @@ -0,0 +1,56 @@ +From 7c8809b3623011fddcfb01fdbb756f61e60fd558 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Fri, 17 Jul 2020 12:36:52 -0400 +Subject: Revert "usb/ehci-platform: Set PM runtime as active on resume" + +This reverts commit 5365fc3132a36a027fd7c2bb461e651b37f1e4d1. + +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 +--- + drivers/usb/host/ehci-platform.c | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c +index 1b141e9299f99..a268d9e8d6cfb 100644 +--- a/drivers/usb/host/ehci-platform.c ++++ b/drivers/usb/host/ehci-platform.c +@@ -378,11 +378,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); +- + return 0; + } + #endif /* CONFIG_PM_SLEEP */ +-- +2.25.1 + diff --git a/queue-4.9/revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch b/queue-4.9/revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch new file mode 100644 index 00000000000..a05e69bb69d --- /dev/null +++ b/queue-4.9/revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch @@ -0,0 +1,56 @@ +From d3d39b05e6a4d8f4c9e09b3b6a706acd44adc3e4 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Fri, 17 Jul 2020 12:39:13 -0400 +Subject: Revert "usb/ohci-platform: Fix a warning when hibernating" + +This reverts commit 104592a5233d77322c3e527e3925dc7c5a30a6af. + +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 +--- + 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 9e3fdb1421f75..898b74086c129 100644 +--- a/drivers/usb/host/ohci-platform.c ++++ b/drivers/usb/host/ohci-platform.c +@@ -340,11 +340,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.9/revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch b/queue-4.9/revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch new file mode 100644 index 00000000000..2ec7a7bef90 --- /dev/null +++ b/queue-4.9/revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch @@ -0,0 +1,63 @@ +From dd6673f12f9a24d96fa58e2b64cb0edc24abb145 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Fri, 17 Jul 2020 12:38:19 -0400 +Subject: Revert "usb/xhci-plat: Set PM runtime as active on resume" + +This reverts commit 9e148a5e5e0929a4cb3000de9c843a07508ce575. + +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 +--- + drivers/usb/host/xhci-plat.c | 11 +---------- + 1 file changed, 1 insertion(+), 10 deletions(-) + +diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c +index 169d7b2feb1f7..781283a5138ea 100644 +--- a/drivers/usb/host/xhci-plat.c ++++ b/drivers/usb/host/xhci-plat.c +@@ -313,17 +313,8 @@ static int xhci_plat_resume(struct device *dev) + { + struct usb_hcd *hcd = dev_get_drvdata(dev); + struct xhci_hcd *xhci = hcd_to_xhci(hcd); +- int 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 const struct dev_pm_ops xhci_plat_pm_ops = { +-- +2.25.1 + diff --git a/queue-4.9/series b/queue-4.9/series index 69eb2d8bfed..5e8741e62ef 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -46,3 +46,6 @@ iio-pressure-ms5611-fix-buffer-element-alignment.patch iio-health-afe4403-fix-timestamp-alignment-and-prevent-data-leak.patch spi-fix-initial-spi_sr-value-in-spi-fsl-dspi.patch net-dsa-bcm_sf2-fix-node-reference-count.patch +revert-usb-ehci-platform-set-pm-runtime-as-active-on.patch +revert-usb-xhci-plat-set-pm-runtime-as-active-on-res.patch +revert-usb-ohci-platform-fix-a-warning-when-hibernat.patch