]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dmaengine: at_xdmac: adapt perid for mem2mem operations
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 16 Oct 2020 09:37:25 +0000 (12:37 +0300)
committerVinod Koul <vkoul@kernel.org>
Fri, 30 Oct 2020 08:40:27 +0000 (14:10 +0530)
commit60f88c031d94f906f01df1cb155f7a866812a716
treedaea65716dbc627cfd4857989eb901907af43ccd
parentcb0362b6ec537619b842b54e794ae8a87a5122bb
dmaengine: at_xdmac: adapt perid for mem2mem operations

The PERID in the CC register for mem2mem operations must match an unused
PERID.
The PERID field is 7 bits, but the selected value is 0x3f.
On later products we can have more reserved PERIDs for actual peripherals,
thus this needs to be increased to maximum size.
Changing the value to 0x7f, which is the maximum for 7 bits field.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201016093725.289880-1-eugen.hristev@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c