]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xgene: Poll link status via GPIO
authorIyappan Subramanian <isubramanian@apm.com>
Sat, 13 Aug 2016 05:05:44 +0000 (22:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:48:53 +0000 (11:48 -0700)
commit417053a94605d1c0dda251a31bf2d66d3b213df8
tree4b4d62c8eeb7b99b0c843a4ce846ff02818b416f
parent8a08d00f87d6774a5feae3e5ed81b821955a616d
drivers: net: xgene: Poll link status via GPIO

When 10GbE SFP+ module is not plugged in or cable is not connected,
the link status register does not report the proper state due
to floating signal. This patch checks the module present status via an
GPIO to determine whether to ignore the link status register and report
link down.

Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Tested-by: Fushen Chen <fchen@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/Kconfig
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c