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)
commit68b759a75d6257759d1e37ff13f2d0659baf1112
tree39c0dcf49109280487aedc96532ac8a200c17b13
parent98bda63e20daab95bdc084ce00459a4f622a0505
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: 97ca486592c0 ("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