]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: fix fw_status read
authorShannon Nelson <snelson@pensando.io>
Wed, 19 Feb 2020 22:59:42 +0000 (14:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 23:48:04 +0000 (15:48 -0800)
commitccf2ed1210fab9f3d20b9d24f21aa7ad8f020f34
tree39c0dcf49109280487aedc96532ac8a200c17b13
parentcf5c93c1570fbde154ea94b9d351c6cba4149b86
ionic: fix fw_status read

The fw_status field is only 8 bits, so fix the read.  Also,
we only want to look at the one status bit, to allow for future
use of the other bits, and watch for a bad PCI read.

Fixes: a17e4a90098a ("ionic: add heartbeat check")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_dev.c
drivers/net/ethernet/pensando/ionic/ionic_if.h