Skip to content

Commit

Permalink
imx8mq-var-dart: Add Ethernet suspend/resume script
Browse files Browse the repository at this point in the history
This initializes the PHY registers after a suspend/resume cycle.

Signed-off-by: Alifer Moraes <[email protected]>
  • Loading branch information
alifermoraes committed May 30, 2022
1 parent 91681e4 commit 7473cfb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions variscite/imx8mq-var-dart/03-eth.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

case $1 in

"suspend")
;;
"resume")
for eth_interface in /sys/class/net/eth* ; do
ifconfig $(basename ${eth_interface}) down
ifconfig $(basename ${eth_interface}) up
done
;;
esac

0 comments on commit 7473cfb

Please sign in to comment.