]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: stmmac: support future possible different internal phy mode
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Tue, 27 Jun 2017 09:28:01 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 16:23:27 +0000 (12:23 -0400)
commit1c2fa5f846832cbed8b8e6151471436071972e41
treedf18b4aa6d12d90bd1d4cdc81cfdde065dc2bfda
parenteac306b4adb7452c0228f32dd004f791ab08aae8
net: stmmac: support future possible different internal phy mode

The current way to find if the phy is internal is to compare DT phy-mode
and emac_variant/internal_phy.
But it will negate a possible future SoC where an external PHY use the
same phy mode than the internal one.

By using phy-mode = "internal" we permit to have an external PHY with
the same mode than the internal one.

Reported-by: André Przywara <andre.przywara@arm.com>
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c