mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
At least since commit334304ac2b("dma-mapping: don't return errors from dma_set_max_seg_size") setting up device.dma_parms is basically mandated by the DMA API. As of now Channel (CCW) I/O in general does not utilize the DMA API, except for virtio. For virtio-ccw however the common virtio DMA infrastructure is such that most of the DMA stuff hinges on the virtio parent device, which is a CCW device. So lets set up the dma_parms pointer for the CCW parent device and hope for the best! Fixes:334304ac2b("dma-mapping: don't return errors from dma_set_max_seg_size") Reported-by: Marc Hartmayer <[email protected]> Reviewed-by: Eric Farman <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Tested-by: Marc Hartmayer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Halil Pasic <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>