[][kernel][common][eth][Add PHYA power down sanity check to SGMII initial sequence]

[Description]
Add PHYA power down sanity check to SGMII initial sequence.

When we configure phylink as fixed-link mode, the kernel will
call mac_config() to initial SGMII several times during the boot
procedure. This behavior might cause SGMII link down.
Therefore, we add a PHYA power down sanity check that make sure
PHYA is powered down when needed.

If without this patch, SGMII might link down after system bring up.

[Release-log]
N/A


Change-Id: Ie2f52852d055ef721d2cb380115644f2d80729ad
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7117100
1 file changed