Linux 4.19 CPSW driver
Can anyone point to the code in cpsw.c/phy.c where the link detection is done of a device under cpsw's control? I do not see an interrupt, so I assume it is being polled by the phy_state_machine in phy.c....
I want to add the link detection of port 2 (second port of my switch) to work as as well as port 1 (port 1 on my 2 port switch) and port 5 (my mac/phy chip) which both work great.
I have already tried to fool the switch phy driver to report link = on, but it only works AFTER the cable is really connected - then you can remove it and it stays linked so the second port will function without port 1 having a cable plugged in.
Thanks