Skip to content
Unverified Commit 4df3bea7 authored by Justin Chen's avatar Justin Chen Committed by Mark Brown
Browse files

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: fa236a7e

 ("spi: bcm-qspi: Add Broadcom MSPI driver")
Signed-off-by: default avatarJustin Chen <justinpopo6@gmail.com>
Signed-off-by: default avatarKamal 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: default avatarMark Brown <broonie@kernel.org>
parent 1b7ad8c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment