]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: fix bug in soft reset failure detection
authorDerek Chickles <derek.chickles@cavium.com>
Wed, 5 Jul 2017 18:59:27 +0000 (11:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jul 2017 09:36:03 +0000 (10:36 +0100)
commit70312ff884ce756551f8187920a13c402ddb5d4d
tree9f2f3ebff120b56a25965478cf7b1fadc7cfacfb
parentfe09d8dbb749a65f966c960bb7e019974972c1a7
liquidio: fix bug in soft reset failure detection

The code that detects a failed soft reset of Octeon is comparing the wrong
value against the reset value of the Octeon SLI_SCRATCH_1 register,
resulting in an inability to detect a soft reset failure.  Fix it by using
the correct value in the comparison, which is any non-zero value.

Fixes: 3dd251efd9d6 ("Add support of Cavium Liquidio ethernet adapters")
Fixes: 1958878f47d5 ("liquidio: CN23XX firmware download")
Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/cn66xx_device.c