net: ethernet: fec_main: Add "phy-reset-in-suspend" device tree option. When this...
authorJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 11:33:39 +0000 (13:33 +0200)
committerJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 11:33:39 +0000 (13:33 +0200)
commit06f023d1295f74bf55e2473e9881cd191666b4de
treea0136895c8c1d8b4645b99b3709b23f994b2ddf9
parent27d60e5e87fbc97dd202e61575775ec352d5c5ba
net: ethernet: fec_main: Add "phy-reset-in-suspend" device tree option. When this option is
present, the driver will assert the phy reset line during suspend.
There are two main reasons to set this configuration:
- Avoid that the phy reset line "powers" the phy when the phy power
  is turned off.
- Ensure that the phy is reset when waking up from suspend, what
  helps to ensure proper operation when the phy power is turned off.

Based on: https://github.com/digi-embedded/linux/commit/f0ddbc0153b269bfd21b84dbd4ad16acdfd21f29

Signed-off-by: Josep Orga <jorga@somdevices.com>
Documentation/devicetree/bindings/net/fsl-fec.txt
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c