dmaengine: ioatdma: adding shutdown support
authorDave Jiang <dave.jiang@intel.com>
Wed, 26 Aug 2015 20:17:24 +0000 (13:17 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 21 Sep 2015 15:40:05 +0000 (21:10 +0530)
commitad4a7b5065c1b4f5176e7d031c3cc2b36f776884
treefebe068710e3019801c09c014d6cee2843cb24c3
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
dmaengine: ioatdma: adding shutdown support

The ioatdma needs to be queisced and block all additional op submission
during reboots. When NET_DMA was used, this caused issue as ops were still
being sent to ioatdma during reboots even though PCI BME has been turned
off. Even though NET_DMA has been deprecated, we need to prevent similar
situations. The shutdown handler should address that.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ioat/dma.c
drivers/dma/ioat/dma.h
drivers/dma/ioat/init.c
drivers/dma/ioat/prep.c