[][kernel][common][eth][Update gangload timeout mechanism for the Aquantia PHY driver]

[Description]
Refactor gangload timeout mechanism for the Aquantia PHY driver.

In the previous commit [0], we added a timeout mechanism to
the gangload mode, it will force download firmware into the 10G PHY
when there is only one 10G PHY IC on the board.
However, we found that previous commit might experience a race
condition between the heartbeat thread and the gangload function.

[0] https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/
mtk-openwrt-feeds/+/9451bcd2b4bd78b1c9fee5303a793d5077e60149

Without this patch, the gangload mode may fail to download firmware
on the board without WiFi.

[Release-log]
N/A


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