diff options
author | Tomer Tayar <Tomer.Tayar@cavium.com> | 2018-08-20 00:01:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-20 11:34:39 -0700 |
commit | 76271809f49056f079e202bf6513d17b0d6dd34d (patch) | |
tree | 44986b5f8596b3753c8031c2de874720eaac6136 /drivers/net/ethernet/qlogic/qed/qed_reg_addr.h | |
parent | qed: Wait for ready indication before rereading the shmem (diff) | |
download | linux-dev-76271809f49056f079e202bf6513d17b0d6dd34d.tar.xz linux-dev-76271809f49056f079e202bf6513d17b0d6dd34d.zip |
qed: Wait for MCP halt and resume commands to take place
Successive iterations of halting and resuming the management chip (MCP)
might fail, since currently the driver doesn't wait for these operations to
actually take place.
This patch prevents the driver from moving forward before the operations
are reflected in the state register.
Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_reg_addr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h b/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h index d8ad2dcad8d5..2279965f8f8a 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h +++ b/drivers/net/ethernet/qlogic/qed/qed_reg_addr.h @@ -562,6 +562,7 @@ 0 #define MCP_REG_CPU_STATE \ 0xe05004UL +#define MCP_REG_CPU_STATE_SOFT_HALTED (0x1UL << 10) #define MCP_REG_CPU_EVENT_MASK \ 0xe05008UL #define PGLUE_B_REG_PF_BAR0_SIZE \ |