net: phy: micrel: Restore led_mode and clk_sel on resume
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 31 May 2017 10:29:30 +0000 (13:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 19:02:30 +0000 (15:02 -0400)
commit79e498a9c7da0737829ff864aae44df434105676
tree63a902dfff27414dffa9c2b0130abb9f12ac31be
parente6f4292ae0a1e73fae26ced57de13a48f71ad1fa
net: phy: micrel: Restore led_mode and clk_sel on resume

These bits seem to be lost after a suspend/resume cycle so just set them
again. Do this by splitting the handling of these bits into a function
that is also called on resume.

This patch fixes ethernet suspend/resume on imx6ul-14x14-evk boards.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c