net: gemini: Move main init to port
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jul 2018 19:32:44 +0000 (21:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:39:15 +0000 (17:39 -0700)
commit06d51513129495fba9bb68ef7aa8cc5ca60e0556
treeec321dffd25ac722dd703728c0b56fc7d2d88eef
parent60cc7767b901dd1e3f70755c3d2505556ba487c2
net: gemini: Move main init to port

The initialization sequence for the ethernet, setting up
interrupt routing and such things, need to be done after
both the ports are clocked and reset. Before this the
config will not "take". Move the initialization to the
port probe function and keep track of init status in
the state.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cortina/gemini.c