diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2018-10-23 20:24:26 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-23 10:55:34 -0700 |
commit | 8e850f25b5812aefedec6732732eb10e7b47cb5c (patch) | |
tree | d7cf4b8e7be570e205fae49f1657ec3f78b0fc9b /Makefile | |
parent | 487e2e22ab7968f2c0c82f37b5ca5883efd1a354 (diff) |
net: socionext: Stop PHY before resetting netsec
In ndo_stop, driver resets the netsec ethernet controller IP.
When the netsec IP is reset, HW running mode turns to NRM mode
and driver has to wait until this mode transition completes.
But mode transition to NRM will not complete if the PHY is
in normal operation state. Netsec IP requires PHY is in
power down state when it is reset.
This modification stops the PHY before resetting netsec.
Together with this modification, phy_addr is stored in netsec_priv
structure because ndev->phydev is not yet ready in ndo_init.
Fixes: 533dd11a12f6 ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: Yoshitoyo Osaki <osaki.yoshitoyo@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions