]> 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)
commit4f8e476e2299f6a464779ab0cdc67db52c30e906
tree62ad5a57f24c97e2421d57966759cda24e320d2b
parent88f440d8b0ce4536430fe7adf6e3a6195a2cbed0
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