]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00286416 net:fec: Pinctrl PM: add net device running status check
authorFugang Duan <B38611@freescale.com>
Wed, 6 Nov 2013 05:36:23 +0000 (13:36 +0800)
committerFugang Duan <B38611@freescale.com>
Wed, 6 Nov 2013 06:00:48 +0000 (14:00 +0800)
commit501454ee92342304ff49ee9458d2783665f27225
tree051f79d81269378169e756a9e7fb8ebda3b4c5b9
parentf5e5ae0b43d3e14214fd62d55323ccc3558c35f5
ENGR00286416 net:fec: Pinctrl PM: add net device running status check

In below case:
ifconfig eth0 down
echo mem > /sys/power/state

After resume, fec pin status set to default, which is not expected
and cost unnecessary power. So, add net device running status check
before calling Pinctrl PM APIs.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/net/ethernet/freescale/fec_main.c