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)
commit27ecf87c8a9d6152203ff5feb74535abd48e9ad3
tree4b4d62c8eeb7b99b0c843a4ce846ff02818b416f
parent3eb7cb9dc94609c14c51029964ac4bfd59cc4d25
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