]> git.baikalelectronics.ru Git - kernel.git/commit
spi: bcm-qspi: when tx/rx buffer is NULL set to 0
authorJustin Chen <justinpopo6@gmail.com>
Mon, 20 Apr 2020 19:08:49 +0000 (15:08 -0400)
committerMark Brown <broonie@kernel.org>
Tue, 21 Apr 2020 15:05:56 +0000 (16:05 +0100)
commit135aeee547410984a475cacc50266e0d21993130
tree353a66517259ab82d5af5d6c987c60c5e43bb6a2
parent747bd7b45416db328660d4e716b675802cc62fc2
spi: bcm-qspi: when tx/rx buffer is NULL set to 0

Currently we set the tx/rx buffer to 0xff when NULL. This causes
problems with some spi slaves where 0xff is a valid command. Looking
at other drivers, the tx/rx buffer is usually set to 0x00 when NULL.
Following this convention solves the issue.

Fixes: 90733358ac1e ("spi: bcm-qspi: Add Broadcom MSPI driver")
Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200420190853.45614-6-kdasu.kdev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm-qspi.c