spi: dw: Zero DMA Tx and Rx configurations on stack
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 6 May 2020 15:30:18 +0000 (18:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jun 2020 08:24:14 +0000 (10:24 +0200)
commit3801effa5fe3a51f907170f932362d07fbfc8d2d
tree19d96ea61bc2ba99d3aa9f341c84ba9d725c6598
parent966de7bdeff501395b630c6503a17caaf8295d41
spi: dw: Zero DMA Tx and Rx configurations on stack

[ Upstream commit 3cb97e223d277f84171cc4ccecab31e08b2ee7b5 ]

Some DMA controller drivers do not tolerate non-zero values in
the DMA configuration structures. Zero them to avoid issues with
such DMA controller drivers. Even despite above this is a good
practice per se.

Fixes: 7063c0d942a1 ("spi/dw_spi: add DMA support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Feng Tang <feng.tang@intel.com>
Cc: Feng Tang <feng.tang@intel.com>
Link: https://lore.kernel.org/r/20200506153025.21441-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-dw-mid.c