]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d0f38050d52bb90b387942d8f5c760b46d70785
tree31491c40f00c8b5a9f0fe2d7fc2a1bbcf878578f
parent5fb768d158ec8256b80afe537634a5974200ba13
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