]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
qed: Revise load sequence to avoid PCI errors
authorTomer Tayar <tomer.tayar@cavium.com>
Mon, 28 Jan 2019 17:27:54 +0000 (19:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2019 18:58:41 +0000 (10:58 -0800)
commit666db4862f2d373bb054b9fdde3d0ee1e7cd18c5
tree52a984d23868ae8ed14f749abbea4f25c558cf44
parent8e067bb3fc921f31450403d82ef664832735c424
qed: Revise load sequence to avoid PCI errors

Initiating final cleanup after an ungraceful driver unload can lead to bad
PCI accesses towards the host.
This patch revises the load sequence so final cleanup is sent while the
internal master enable is cleared, to prevent the host accesses, and clears
the internal error indications just before enabling the internal master
enable.

Signed-off-by: Tomer Tayar <tomer.tayar@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_dev_api.h
drivers/net/ethernet/qlogic/qed/qed_int.c
drivers/net/ethernet/qlogic/qed/qed_int.h
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h