]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: change manner of detecting whether or not NIC firmware is loaded
authorFelix Manlunas <felix.manlunas@cavium.com>
Tue, 22 Aug 2017 19:46:37 +0000 (12:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 03:29:24 +0000 (20:29 -0700)
commit5f34d3288c62fd04bdf8d28bfc796b4208eb6623
tree54047681512d9d6b89940a5ae17d608dc9048d2a
parent1693710200ef3e688d68fd63661c90fb204effb2
liquidio: change manner of detecting whether or not NIC firmware is loaded

In the NIC firmware, the 1-bit flag indicating "firmware is loaded" moved
from SLI_SCRATCH_1 to SLI_SCRATCH_2 (these are Octeon general-purpose
scratch registers).  Make the PF driver conform to this change.

Remove code that sets the "firmware is loaded" flag because it's now the
firmware's job to do that.

In the code that detects whether or not the firmware is loaded, don't just
rely on checking the "firmware is loaded" flag because that may cause a
rare false negative.  Add code that deduces whether or not the firmware is
loaded; that will never give a false negative.

Also bump up driver version to match newer NIC firmware.

Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h