|
@@ -935,12 +935,15 @@ static void bam_apply_new_config(struct bam_chan *bchan,
|
|
struct bam_device *bdev = bchan->bdev;
|
|
struct bam_device *bdev = bchan->bdev;
|
|
u32 maxburst;
|
|
u32 maxburst;
|
|
|
|
|
|
- if (dir == DMA_DEV_TO_MEM)
|
|
|
|
- maxburst = bchan->slave.src_maxburst;
|
|
|
|
- else
|
|
|
|
- maxburst = bchan->slave.dst_maxburst;
|
|
|
|
|
|
+ if (!bdev->controlled_remotely) {
|
|
|
|
+ if (dir == DMA_DEV_TO_MEM)
|
|
|
|
+ maxburst = bchan->slave.src_maxburst;
|
|
|
|
+ else
|
|
|
|
+ maxburst = bchan->slave.dst_maxburst;
|
|
|
|
|
|
- writel_relaxed(maxburst, bam_addr(bdev, 0, BAM_DESC_CNT_TRSHLD));
|
|
|
|
|
|
+ writel_relaxed(maxburst,
|
|
|
|
+ bam_addr(bdev, 0, BAM_DESC_CNT_TRSHLD));
|
|
|
|
+ }
|
|
|
|
|
|
bchan->reconfigure = 0;
|
|
bchan->reconfigure = 0;
|
|
}
|
|
}
|