Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma: pl330: Alloc dma_parms for the dma device

In order to be able to set a maximum segment size for the device we need to
allocate a dma_parameters struct for the device first.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Lars-Peter Clausen and committed by
Vinod Koul
b714b84e 319e2e3f

+6
+6
drivers/dma/pl330.c
··· 578 578 /* DMA-Engine Device */ 579 579 struct dma_device ddma; 580 580 581 + /* Holds info about sg limitations */ 582 + struct device_dma_parameters dma_parms; 583 + 581 584 /* Pool of descriptors available for the DMAC's channels */ 582 585 struct list_head desc_pool; 583 586 /* To protect desc_pool manipulation */ ··· 3026 3023 "unable to register DMA to the generic DT DMA helpers\n"); 3027 3024 } 3028 3025 } 3026 + 3027 + adev->dev.dma_parms = &pdmac->dma_parms; 3028 + 3029 3029 /* 3030 3030 * This is the limit for transfers with a buswidth of 1, larger 3031 3031 * buswidths will have larger limits.