Omnia: Add SFP insert/remove handler daemon
Omnia has GPIO expander that generates IRQs when the SFP is inserted or removed. mvneta driver in Omnia kernel is hacked to export attribute that sets the target PHY. Catch is that interface has to be restarted after a switch of the target PHY has happened. This daemon connects this together: It waits for IRQ (in fact for GPIO change) and performs the PHY switch and restart of network. This is only a temporary solution for the meantime between Omnia release and phylink driver adoption.
sfpswitch/sfpswitch.py
0 → 100755
Please register or sign in to comment