]> 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)
commit3251035aec5b06045a129773a0c853a1e1c4112c
tree39c0dcf49109280487aedc96532ac8a200c17b13
parent44233c0f6fdb8e699210cf5297182f723a1a1d51
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: 969a805e20bb ("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