spi: dw: Refactor mid_spi_dma_setup() to separate DMA and IRQ config
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 29 May 2020 18:31:50 +0000 (21:31 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 19:04:04 +0000 (20:04 +0100)
commit3d7db0f11c7ad19979a1a01cac1d379ff040e886
tree858ee5df1e7e69b483c3444c15540c406d111245
parentb3f82dc26c0d4e1348ef81e0189cb8838b8b0d22
spi: dw: Refactor mid_spi_dma_setup() to separate DMA and IRQ config

It's better to understand what bits are set for DMA and for IRQ handling
in mid_spi_dma_setup() if they are grouped accordingly. Thus,
refactor mid_spi_dma_setup() to separate DMA and IRQ configuration.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200529183150.44149-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-dma.c