]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite028d609e6b1b2d9fe019097dbb1e5eb6114c745
tree62ad5a57f24c97e2421d57966759cda24e320d2b
parent57eb8e557a05684afcee870caa2387310737e66d
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