diff options
author | Arseny Solokha <asolokha@kb.kras.ru> | 2019-09-04 20:52:22 +0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 12:28:15 +0200 |
commit | 8e578e73ef2ebc49196d5bb36220dc97b53559a1 (patch) | |
tree | 8279c7e08a17543c71b4e86bd142bb2340cf3139 /drivers/nvmem | |
parent | gianfar: cleanup gianfar.h (diff) | |
download | linux-dev-8e578e73ef2ebc49196d5bb36220dc97b53559a1.tar.xz linux-dev-8e578e73ef2ebc49196d5bb36220dc97b53559a1.zip |
gianfar: use DT more consistently when selecting PHY connection type
Historically, gianfar only used phy-connection-type DT property when
connected to PHY in the rgmii-id mode. It ignored the property otherwise,
relying on the connection type auto-detection carried out by MAC and
providing that reconstructed mode to of_phy_connect(). It also did not
consider alternative phy-mode property at all.
Make the driver properly query DT node for PHY connection type first and
use an obtained value if it was specified there. Otherwise, if a particular
DT relies on connection type auto-detection, fall back to reconstructing
the value from MAC registers, as before.
Signed-off-by: Arseny Solokha <asolokha@kb.kras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nvmem')
0 files changed, 0 insertions, 0 deletions