Return the engine type from the function looking at the registers, and just derive the DMA mask from that in the one place we care. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Kalle Valo <[email protected]>