]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
qed: Wait for MCP halt and resume commands to take place
authorTomer Tayar <Tomer.Tayar@cavium.com>
Sun, 19 Aug 2018 21:01:43 +0000 (00:01 +0300)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:51:25 +0000 (19:51 -0600)
commit61812851d0705a1ece4b8da74b2224b9b9966741
tree772aa0b9a53f5c550a6505f1984c8c415d39ebf7
parent7775a1960193a3a797cc6a47310f0a655bd8ae35
qed: Wait for MCP halt and resume commands to take place

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

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>
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
drivers/net/ethernet/qlogic/qed/qed_reg_addr.h