diff options
author | Kamal Dasu <[email protected]> | 2022-01-27 13:53:59 -0500 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-01-28 13:05:20 +0000 |
commit | 2cbd27267ffe020af1442b95ec57f59a157ba85c (patch) | |
tree | f4d2c6275fc31b3f5049a5c5a04de0c102bf680e /lib/mpi | |
parent | 37c2c83ca4f1ef4b6908181ac98e18360af89b42 (diff) |
spi: bcm-qspi: check for valid cs before applying chip select
Apply only valid chip select value. This change fixes case where chip
select is set to initial value of '-1' during probe and PM supend and
subsequent resume can try to use the value with undefined behaviour.
Also in case where gpio based chip select, the check in
bcm_qspi_chip_select() shall prevent undefined behaviour on resume.
Fixes: fa236a7ef240 ("spi: bcm-qspi: Add Broadcom MSPI driver")
Signed-off-by: Kamal Dasu <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions