Skip to content
Commit 8e850f25 authored by Masahisa Kojima's avatar Masahisa Kojima Committed by David S. Miller
Browse files

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: 533dd11a ("net: socionext: Add Synquacer NetSec driver")
Signed-off-by: default avatarMasahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: default avatarYoshitoyo Osaki <osaki.yoshitoyo@socionext.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 487e2e22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment