[][kernel][mt7988][eth][Refactor SER triggering condition for the XGDM to GDM dynamically change]

[Description]
Refactor SER triggering condition for the XGDM to GDM dynamically change.

When connecting the 10G SFP+ RJ-45 module, the phylink will call
mtk_mac_config() twice. We added a flag to bypass the second one, but
this flag may cause 1G SFP optical module cannot trigger SER.
Therefore, we change the triggering condition to make sure every type
1G SFP module can trigger SER.

If without this patch, the SER might not be able to trigger whenever
switching to the 1G SFP optical module from the 10G module.

[Release-log]
N/A


Change-Id: Ie992a2f23c4850a12b959342910ec977c776d1be
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7468581
2 files changed