[PATCH 6.1 288/473] dmaengine: idma64: Add check for dma_set_max_seg_size