]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:51:24 +0000 (19:51 -0600)
commit7775a1960193a3a797cc6a47310f0a655bd8ae35
tree57865233978b374ae48d8ef87c2a2b1516f64498
parentd458ca6316b5e20ae5c52a628b2b6a8024e890e2
qed: Wait for ready indication before rereading the shmem

BugLink: https://bugs.launchpad.net/bugs/1836287
[ Upstream commit f00d25f3154b676fcea4502a25b94bd7f142ca74 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/qlogic/qed/qed_mcp.c