net/ice/base: add function to get FW mode
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:35:55 +0000 (10:35 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:52 +0000 (15:00 +0200)
commit6277fc33e2e066c1afbc2f7e5fe48a050cfec726
treef23e24653f7c868ad3b3fcbbb50cb85a85b3eb1a
parent4b6e8c03befe8398b71c371c96d0b009c10e48f6
net/ice/base: add function to get FW mode

Add a helper function to get FW mode. The FW mode can be normal,
debug, recovery or rollback.

This makes ice_is_fw_in_rec_mode redundant, so remove it.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_common.h