net/i40e/base: add FWS1B register masks
Function check_recovery_mode had wrong if statement. Now we check proper FWS1B register values, which are responsible for the recovery mode. Recovery mode has 6 values in total. That's why we need 6 different flags. Now in if statement we recognize type of mac and register value. Without those changes driver could show wrong state. Signed-off-by: Adrian Podlawski <adrian.podlawski@intel.com> Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Beilei Xing <beilei.xing@intel.com>
This commit is contained in:
parent
f8a4eae27c
commit
3794e5d7ab
@ -366,6 +366,18 @@
|
||||
#define I40E_GL_FWSTS_FWRI_MASK I40E_MASK(0x1, I40E_GL_FWSTS_FWRI_SHIFT)
|
||||
#define I40E_GL_FWSTS_FWS1B_SHIFT 16
|
||||
#define I40E_GL_FWSTS_FWS1B_MASK I40E_MASK(0xFF, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK \
|
||||
I40E_MASK(0x30, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK \
|
||||
I40E_MASK(0x31, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK \
|
||||
I40E_MASK(0x32, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK \
|
||||
I40E_MASK(0x33, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK \
|
||||
I40E_MASK(0xB, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK \
|
||||
I40E_MASK(0xC, I40E_GL_FWSTS_FWS1B_SHIFT)
|
||||
#define I40E_GLGEN_CLKSTAT 0x000B8184 /* Reset: POR */
|
||||
#define I40E_GLGEN_CLKSTAT_CLKMODE_SHIFT 0
|
||||
#define I40E_GLGEN_CLKSTAT_CLKMODE_MASK I40E_MASK(0x1, I40E_GLGEN_CLKSTAT_CLKMODE_SHIFT)
|
||||
|
Loading…
Reference in New Issue
Block a user