stmmac: dwmac-socfpga: keep a copy of stmmac_rst in driver priv data
authorJoachim Eastwood <manabian@gmail.com>
Sun, 1 May 2016 20:58:21 +0000 (22:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 19:22:20 +0000 (15:22 -0400)
commit70cb136f7730830aa1134925a941e3ad96e3a846
tree33e6bc54102ea972d647254c6c15f10d5f038b93
parent56868deece922283b367d08f1d647726d5b307d9
stmmac: dwmac-socfpga: keep a copy of stmmac_rst in driver priv data

The dwmac-socfpga driver needs to control the reset usually managed
by the core driver to set the PHY mode. Take a copy of the reset
handle from core priv data so it can be used by the driver later.

This also allow us to move reset handling into socfpga_dwmac_setup()
where the code that needs it is located.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c