]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix link configuration with autoneg disabled
authorChopra, Manish <Manish.Chopra@cavium.com>
Thu, 11 May 2017 14:12:47 +0000 (07:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2017 01:39:53 +0000 (21:39 -0400)
commite318bda6be1ba92c08dc977c705ab10e9a0eefc7
tree047e9135c2e8d23d472376bc1fdc873173b045ef
parentcae7404ab7c142e1c4679f5bdfc19ed8bca5fdec
qlcnic: Fix link configuration with autoneg disabled

Currently driver returns error on speed configurations
for 83xx adapter's non XGBE ports, due to this link doesn't
come up on the ports using 1000Base-T as a connector with
autoneg disabled. This patch fixes this with initializing
appropriate port type based on queried module/connector
types from hardware before any speed/autoneg configuration.

Signed-off-by: Manish Chopra <manish.chopra@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c