]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:52:20 +0000 (13:52 +0200)
commitdd4e3fa6586580edbf7bfc9218901578b85e745a
treeeef698c36d2e2ff795f00705c04b0e8b8914a393
parente2a0d19eb38dd4ecee3c17d8a88e9dbdf5bdbff2
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