linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mm-verdin: Do not power down eth-phy
@ 2023-01-16 14:01 Philippe Schenker
  2023-01-26  7:32 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe Schenker @ 2023-01-16 14:01 UTC (permalink / raw)
  To: devicetree
  Cc: Philippe Schenker, Andrejs Cainikovs, Fabio Estevam,
	Francesco Dolcini, Krzysztof Kozlowski, Marcel Ziswiler,
	NXP Linux Team, Pengutronix Kernel Team, Rob Herring,
	Sascha Hauer, Shawn Guo, linux-arm-kernel, linux-kernel

From: Philippe Schenker <philippe.schenker@toradex.com>

Currently if suspending using either freeze or memory state, the fec
driver tries to power down the phy which leads to crash of the kernel
and non-responsible kernel with the following call trace:

[   24.839889 ] Call trace:
[   24.839892 ]  phy_error+0x18/0x60
[   24.839898 ]  kszphy_handle_interrupt+0x6c/0x80
[   24.839903 ]  phy_interrupt+0x20/0x2c
[   24.839909 ]  irq_thread_fn+0x30/0xa0
[   24.839919 ]  irq_thread+0x178/0x2c0
[   24.839925 ]  kthread+0x154/0x160
[   24.839932 ]  ret_from_fork+0x10/0x20

Since there is currently no functionality in the phy subsystem to power
down phys let's just disable the feature of powering-down the ethernet
phy.

Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>

---

 arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
index 7e8b3b0fa306..4df3c9760151 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
@@ -102,6 +102,7 @@ reg_ethphy: regulator-ethphy {
 		off-on-delay = <500000>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_reg_eth>;
+		regulator-always-on;
 		regulator-boot-on;
 		regulator-max-microvolt = <3300000>;
 		regulator-min-microvolt = <3300000>;
-- 
2.39.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: imx8mm-verdin: Do not power down eth-phy
  2023-01-16 14:01 [PATCH] arm64: dts: imx8mm-verdin: Do not power down eth-phy Philippe Schenker
@ 2023-01-26  7:32 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2023-01-26  7:32 UTC (permalink / raw)
  To: Philippe Schenker
  Cc: devicetree, Philippe Schenker, Andrejs Cainikovs, Fabio Estevam,
	Francesco Dolcini, Krzysztof Kozlowski, Marcel Ziswiler,
	NXP Linux Team, Pengutronix Kernel Team, Rob Herring,
	Sascha Hauer, linux-arm-kernel, linux-kernel

On Mon, Jan 16, 2023 at 03:01:52PM +0100, Philippe Schenker wrote:
> From: Philippe Schenker <philippe.schenker@toradex.com>
> 
> Currently if suspending using either freeze or memory state, the fec
> driver tries to power down the phy which leads to crash of the kernel
> and non-responsible kernel with the following call trace:
> 
> [   24.839889 ] Call trace:
> [   24.839892 ]  phy_error+0x18/0x60
> [   24.839898 ]  kszphy_handle_interrupt+0x6c/0x80
> [   24.839903 ]  phy_interrupt+0x20/0x2c
> [   24.839909 ]  irq_thread_fn+0x30/0xa0
> [   24.839919 ]  irq_thread+0x178/0x2c0
> [   24.839925 ]  kthread+0x154/0x160
> [   24.839932 ]  ret_from_fork+0x10/0x20
> 
> Since there is currently no functionality in the phy subsystem to power
> down phys let's just disable the feature of powering-down the ethernet
> phy.
> 
> Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")
> Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>

Applied, thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-26  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-16 14:01 [PATCH] arm64: dts: imx8mm-verdin: Do not power down eth-phy Philippe Schenker
2023-01-26  7:32 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).