net: keystone_net: move serdes setup to initialization function
authorVitaly Andrianov <vitalya@ti.com>
Wed, 11 Feb 2015 19:05:41 +0000 (14:05 -0500)
committerTom Rini <trini@ti.com>
Mon, 16 Feb 2015 17:41:41 +0000 (12:41 -0500)
commit312aca4e6964812007c8218c0b4b0737e9e0f46a
tree0aef712b905390bbcd1b079cb7d83699b328e964
parent66c98a0c3807720a32ce49c9ba2a5808555062d7
net: keystone_net: move serdes setup to initialization function

On Keystone2 devices serdes must be initialized before accessing MDIO bus.
This commit moves the keystone2_net_serdes_setup() from keystone2_eth_open
to keystone2_emac_initialize to meet that requirement.

This also eliminates unnecessary serdes initializatin every time when the
keystone2_eth_open is being called.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Nishanth Menon <nm@ti.com>
drivers/net/keystone_net.c