drivers: net: xgene: fix: Use GPIO to get link status
authorIyappan Subramanian <isubramanian@apm.com>
Thu, 6 Oct 2016 21:35:57 +0000 (14:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2016 05:53:55 +0000 (01:53 -0400)
commit751d6fd18fb3c6cc123dce844200ddbf5a8ad1a8
tree62ad5a57f24c97e2421d57966759cda24e320d2b
parentc66549ffd666605831abf6cf19ce0571ad868e39
drivers: net: xgene: fix: Use GPIO to get link status

The link value reported by the link status register is not
reliable when no SPF module inserted. This patchset fixes this
issue by using GPIO to determine the link status.

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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