OSDN Git Service

qed: Wait for ready indication before rereading the shmem
authorTomer Tayar <Tomer.Tayar@cavium.com>
Sun, 19 Aug 2018 21:01:42 +0000 (00:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2018 18:34:39 +0000 (11:34 -0700)
commitf00d25f3154b676fcea4502a25b94bd7f142ca74
tree52283417c883bba99c34368edabfaa84d9dc1c8d
parent9c86336c15db1c48cbaddff56caf2be0a930e991
qed: Wait for ready indication before rereading the shmem

The MFW might be reset and re-update its shared memory.
Upon the detection of such a reset the driver rereads this memory, but it
has to wait till the data is valid.
This patch adds the missing wait for a data ready indication.

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>
drivers/net/ethernet/qlogic/qed/qed_mcp.c