]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: reset phy after pinctrl setup
authorShawn Guo <shawn.guo@linaro.org>
Wed, 27 Jun 2012 03:45:20 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2012 04:22:05 +0000 (21:22 -0700)
commitec6ffb7bee541376cf350fd8071f6218b4ac7861
tree215e82c4d767ee066082f973f765baa90db66e25
parentad089a57bd59a4e7c0015dd87691e8d1ab36c83e
net: fec: reset phy after pinctrl setup

In case that bootloader or platform initialization does not set up
fec pins, the fec_reset_phy will not be able to succeed, because
fec_reset_phy is currently called before devm_pinctrl_get_select_default.
Move fec_reset_phy call to the place between devm_pinctrl_get_select_default
and fec_enet_init to have above case be taken care.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.c