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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:17 +0000 (19:48 +0200)
commitd7ba3c00047dfd88fe0360a2d27169b54c88c4f1
treef0f65fdbb6190f5f78dd2b23ce3dfe7a37eae69a
parent96770d43016bbb1f0491c2611f0a5e07092101f2
net: phy: micrel: Restore led_mode and clk_sel on resume

[ Upstream commit 79e498a9c7da0737829ff864aae44df434105676 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/micrel.c