netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: imx6ul-14x14-evk: Fix suspend over nfs by phy cleanup
@ 2017-05-30 17:34 Leonard Crestez
  2017-05-30 17:34 ` [PATCH 1/2] ARM: dts: imx6ul-14x14-evk: Add ksz8081 phy properties Leonard Crestez
  2017-05-30 17:34 ` [PATCH 2/2] net: phy: micrel: Restore led_mode and clk_sel on resume Leonard Crestez
  0 siblings, 2 replies; 11+ messages in thread
From: Leonard Crestez @ 2017-05-30 17:34 UTC (permalink / raw)
  To: Shawn Guo, Florian Fainelli, Andrew Lunn, Andy Duan
  Cc: Johan Hovold, Alexandre Belloni, Philipp Zabel, Fabio Estevam,
	netdev, linux-arm-kernel, linux-kernel

Right now attempting doing suspend/resume while root is mounted over NFS hangs
on imx6ul-14x14-evk. This is happening because ksz8081 phy fixups are lost on
resume.

Fix this by using equivalent devicetree properties instead of a phy fixup and
handling those properties on resume in the micrel driver.

Other solutions would be possible such as having a way to run phy fixups again
on resume. This alternative is precisely targeted.

In theory it might now be possible to remove the phy fixup from mach-imx6ul
entirely but it is possible that this would break other imx6ul boards which use
the same phy. The solution would be to patch their dts but it's not clear how
to identify affected boards.

This code is shared with imx6ull-14x14-evk but 6ull suspend needs an unrelated
patch: https://lkml.org/lkml/2017/5/30/584

Leonard Crestez (2):
  ARM: dts: imx6ul-14x14-evk: Add ksz8081 phy properties
  net: phy: micrel: Restore led_mode and clk_sel on resume

 arch/arm/boot/dts/imx6ul-14x14-evk.dts |  6 ++++++
 drivers/net/phy/micrel.c               | 15 +++++++++++++++
 2 files changed, 21 insertions(+)

-- 
2.7.4

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

end of thread, other threads:[~2017-05-31  4:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-30 17:34 [PATCH 0/2] ARM: imx6ul-14x14-evk: Fix suspend over nfs by phy cleanup Leonard Crestez
2017-05-30 17:34 ` [PATCH 1/2] ARM: dts: imx6ul-14x14-evk: Add ksz8081 phy properties Leonard Crestez
2017-05-30 18:10   ` Florian Fainelli
2017-05-30 22:20     ` Leonard Crestez
2017-05-31  4:08   ` Fabio Estevam
2017-05-30 17:34 ` [PATCH 2/2] net: phy: micrel: Restore led_mode and clk_sel on resume Leonard Crestez
2017-05-30 18:05   ` Florian Fainelli
2017-05-30 22:08     ` Leonard Crestez
2017-05-30 22:19       ` Florian Fainelli
2017-05-30 23:14         ` Leonard Crestez
2017-05-30 18:12   ` Fabio Estevam

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).