]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: rcar-dmac: unmap slave resource when channel is freed
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 11 Jan 2017 14:39:31 +0000 (15:39 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 13 Jan 2017 06:44:28 +0000 (12:14 +0530)
commit4e6e37b74816538dd53a4dc03cfb4b1bfc6dac1c
tree792ee80b684775c3790f5c662601ed1e7da05f2b
parentbcfe4fda37c45a7bab2e0d81405b966665f90b5c
dmaengine: rcar-dmac: unmap slave resource when channel is freed

The slave mapping should be removed together with other channel
resources when the channel is freed. If it's not unmapped it will hang
around forever after the channel is freed.

Fixes: c9386079243355b4 ("dmaengine: rcar-dmac: add iommu support for slave transfers")
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c