]> 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)
commit1692c80a55011eedd05f4b49b1b94850fb6d155e
tree792ee80b684775c3790f5c662601ed1e7da05f2b
parent820099fc157b35dedbca23c36656c7bd56e2101b
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: 2a92644657390ec6 ("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