Skip to content
Unverified Commit 6bb477df authored by Yun Zhou's avatar Yun Zhou Committed by Mark Brown
Browse files

spi: use specific last_cs instead of last_cs_enable



Commit d40f0b6f instroduced last_cs_enable to avoid setting
chipselect if it's not necessary, but it also introduces a bug. The
chipselect may not be set correctly on multi-device SPI busses. The
reason is that we can't judge the chipselect by bool last_cs_enable,
since chipselect may be modified after other devices were accessed.

So we should record the specific state of chipselect in case of
confusion.

Signed-off-by: default avatarYun Zhou <yun.zhou@windriver.com>
Link: https://lore.kernel.org/r/20220217141234.72737-1-yun.zhou@windriver.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fcaaf76e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment