dmaengine: hsu: set maximum allowed segment size for DMA
This tells, for example, IOMMU what the maximum size of a segment the DMA controller can send. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:

committed by
Vinod Koul

parent
c36a0176ba
commit
17b3cf4233
@@ -417,6 +417,8 @@ int hsu_dma_probe(struct hsu_dma_chip *chip)
|
||||
|
||||
hsu->dma.dev = chip->dev;
|
||||
|
||||
dma_set_max_seg_size(hsu->dma.dev, HSU_CH_DxTSR_MASK);
|
||||
|
||||
ret = dma_async_device_register(&hsu->dma);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user