ath79: ensure QCA956x gmac0 mux selects sgmii
authorSander Vanheule <sander@svanheule.net>
Sun, 19 Jul 2020 18:01:48 +0000 (20:01 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 23 Nov 2020 21:53:15 +0000 (22:53 +0100)
commit8dd2a1715b0a59407cf90c0708fc2bc199e110b5
tree2574fe249fed357cfc0457dbaa1522876781714e
parentc0af4a0ca259022d9d2dedcfb31e11ab46e443c2
ath79: ensure QCA956x gmac0 mux selects sgmii

Some bootloaders do not set up gmac0 properly, leaving it disconnected
from the sgmii interface. If the user specificies phy-mode sgmii, then
use the gmac-config/device node to ensure the mux is configured
correctly.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c