diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-02-19 14:59:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-20 15:48:04 -0800 |
commit | 68b759a75d6257759d1e37ff13f2d0659baf1112 (patch) | |
tree | 39c0dcf49109280487aedc96532ac8a200c17b13 /drivers/net/ethernet/pensando/ionic/ionic_if.h | |
parent | net: disable BRIDGE_NETFILTER by default (diff) | |
download | linux-dev-68b759a75d6257759d1e37ff13f2d0659baf1112.tar.xz linux-dev-68b759a75d6257759d1e37ff13f2d0659baf1112.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_if.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_if.h b/drivers/net/ethernet/pensando/ionic/ionic_if.h index ce07c2931a72..54547d53b0f2 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_if.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_if.h @@ -2445,6 +2445,7 @@ union ionic_dev_info_regs { u8 version; u8 asic_type; u8 asic_rev; +#define IONIC_FW_STS_F_RUNNING 0x1 u8 fw_status; u32 fw_heartbeat; char fw_version[IONIC_DEVINFO_FWVERS_BUFLEN]; |