bnx2: Wait for in-flight DMA to complete at probe stage
authorBaoquan He <bhe@redhat.com>
Sun, 13 Nov 2016 05:01:33 +0000 (13:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2016 21:20:53 +0000 (16:20 -0500)
commit6df77862f63f389df3b1ad879738e04440d7385d
tree31491c40f00c8b5a9f0fe2d7fc2a1bbcf878578f
parent5d0d4b91bf627f14f95167b738d524156c9d440b
bnx2: Wait for in-flight DMA to complete at probe stage

In-flight DMA from 1st kernel could continue going in kdump kernel.
New io-page table has been created before bnx2 does reset at open stage.
We have to wait for the in-flight DMA to complete to avoid it look up
into the newly created io-page table at probe stage.

Suggested-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c