Re: [linux-sunxi] Re: [PATCH 1/6] net: stmmac: support future possible different internal phy mode

From: icenowy
Date: Thu Jun 29 2017 - 12:46:43 EST


å 2017-06-30 00:23ïDavid Miller åéï
From: Corentin Labbe <clabbe.montjoie@xxxxxxxxx>
Date: Tue, 27 Jun 2017 11:28:01 +0200

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@xxxxxxx>
Signed-off-by: Corentin Labbe <clabbe.montjoie@xxxxxxxxx>

Series applied.

I think there's still some problems around for this patchset...
The definition of "internal" is internal *proprietary* PHY, but the
internal PHY of Allwinner SoCs seem to be MII...

See [1].

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2017-June/516159.html


Please provide a proper "[PATCH 0/n] " header posting next time.