liquidio: deprecate 1-bit flag indicating watchdog kernel thread is running
authorFelix Manlunas <felix.manlunas@cavium.com>
Thu, 26 Oct 2017 01:04:56 +0000 (18:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 13:13:19 +0000 (22:13 +0900)
commit392209fa833287a1c5532ffbb098bba584a69dbc
tree5dc13ca8d9c2585ad0a4ede701c0421cfa0183c1
parentc0c21458d7d242adf9c3a3e2f3f95392164325ae
liquidio: deprecate 1-bit flag indicating watchdog kernel thread is running

Deprecate the 1-bit flag (bit 2 in the SLI_SCRATCH_1 Octeon register) that
indicates that the liquidio watchdog kernel thread is running for this NIC.
Reason is:  it is incompatible with the firmware's use for SLI_SCRATCH_1.

In lieu of checking that now-deprecated flag, check the value of
oct_dev->adapter_refcount to determine whether or not to create the
watchdog kernel thread.

Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c