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

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/

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


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