> > @@ -3496,10 +3523,11 @@ static int __maybe_unused fec_suspend(struct
> > device *dev)
> > netif_device_detach(ndev);
> > netif_tx_unlock_bh(ndev);
> > fec_stop(ndev);
> > - fec_enet_clk_enable(ndev, false);
> > if (!(fep->wol_flag & FEC_
From: Andrew Lunn Sent: Monday, June 29, 2015 1:36 AM
> To: netdev
> Cc: Duan Fugang-B38611; Duan Fugang-B38611; Cory Tusar; Andrew Lunn
> Subject: [RFC PATCHv4] net: fec: Ensure clocks are enabled while using
> mdio bus
>
> When a switch is attached to the mdio bus, the md
When a switch is attached to the mdio bus, the mdio bus can be used
while the interface is not open. If the IPG clock is not enabled, MDIO
reads/writes will simply time out. Add support for runtime PM to
control the clocks and other resources. Enable/disable the clocks
using runtime PM, with open()