qed: Revise load sequence to avoid PCI errors
authorTomer Tayar <tomer.tayar@cavium.com>
Sun, 20 Jan 2019 09:36:37 +0000 (11:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 01:30:38 +0000 (17:30 -0800)
commitcfdb1b63eefe918e5c8419c9a88188fef1b9cc5e
treefceeeccd3e626588f75d5c66d7e9bafef9a8a1d7
parent1518039f6b5ac794313c24c76f85cead0cd60f6c
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