]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
dmaengine: tegra-apb: Avoid unnecessary channel base address calculation
authorJon Hunter <jonathanh@nvidia.com>
Thu, 6 Aug 2015 13:32:31 +0000 (14:32 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 20 Aug 2015 06:40:17 +0000 (12:10 +0530)
commit13a3328638dd009e76d4bb86e18dc8f3ae4f11dd
tree4e4a3f5fc13278dc03cf3c9c35583935b0bdfb80
parentc67886f5b809cfd9dc20f906f38fc0eddc7cba93
dmaengine: tegra-apb: Avoid unnecessary channel base address calculation

Everytime a DMA channel register is accessed, the channel base address
is calculated by adding the DMA base address and the channel register
offset. Avoid this calculation and simply calculate the channel base
address once at probe time for each DMA channel.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/tegra20-apb-dma.c