]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 8 Nov 2017 10:02:25 +0000 (12:02 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 8 Nov 2017 14:21:40 +0000 (19:51 +0530)
commit77f42237dcc4a88d90ba083715be053b6d03e27c
treef8c8b1cb7e1fc9dc20c8c3c73d075e7444354de8
parent3376a48da9b41e859e00baed9d4b06b3321d77be
dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type

The used 0x1f mask is only valid for am335x family of SoC, different family
using this type of crossbar might have different number of electable
events. In case of am43xx family 0x3f mask should have been used for
example.
Instead of trying to handle each family's mask, just use u8 type to store
the mux value since the event offsets are aligned to byte offset.

Fixes: 9597e5a742621 ("dmaengine: ti-dma-crossbar: Add support for crossbar on AM33xx/AM43xx")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ti-dma-crossbar.c