[][kernel][common][eth][Refactor issue with late-col hang when GMAC operating in half-duplex]

[Description]
Refactor issue with late-col hang when GMAC operating in half-duplex.

Without this patch, the MAC might experience a late collision hang
issue when operating in half-duplex mode on the both SGMII and internal
1G PHY.

[Release-log]
N/A


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