reform-hw-setup: bring down end0 before a311d PHY fix
The PHY reset workaround requires unloading and reloading the dwmac_meson8b and mdio_mux_meson_g12a modules. This was failing with "Module dwmac_meson8b is in use" because NetworkManager races to re-bring up the ethernet interface (end0/eth0) faster than the script can remove the module.
Fix this by explicitly bringing the interface down and retrying modprobe -r dwmac_meson8b in a loop for up to 30 seconds.
Fixes reform-tools#16
Signed-off-by: Stephano Cetola stephano@cetola.net