net/igb: fix PHY status if PHY reset is not blocked
authorShweta Choudaha <shweta.choudaha@att.com>
Thu, 16 May 2019 22:03:31 +0000 (23:03 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit260dd6952600b5b44d0a1ce70a582116e6bd74fa
tree460d4fa372ab8798980d8b40b29335dde4613a65
parent4cf29798b4c95070047d2dc5585ac528f28ddcce
net/igb: fix PHY status if PHY reset is not blocked

When PHY reset is blocked as is the case when BMC is connected via NC-SI
do not set GO_LINKD bit in PHY power management register in dev_stop as
this will disconnect the PHY. Also, in dev_close clear the GO_LINKD
bit only if PHY reset is not blocked

Fixes: 3af34dec0b41 ("igb: force phy power up/down")
Cc: stable@dpdk.org
Signed-off-by: Shweta Choudaha <shweta.choudaha@att.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/e1000/igb_ethdev.c