diff options
author | 2022-02-17 22:12:34 +0800 | |
---|---|---|
committer | 2022-02-28 13:36:16 +0000 | |
commit | 6bb477df04366e0f69dd2f49e1ae1099069326bc (patch) | |
tree | 20f6f83702e1a8ace0991f1e20f2a46946ebc913 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: pxa2xx-pci: Constify struct pxa_spi_info variables (diff) | |
download | linux-dev-6bb477df04366e0f69dd2f49e1ae1099069326bc.tar.xz linux-dev-6bb477df04366e0f69dd2f49e1ae1099069326bc.zip |
spi: use specific last_cs instead of last_cs_enable
Commit d40f0b6f2e21 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: Yun Zhou <yun.zhou@windriver.com>
Link: https://lore.kernel.org/r/20220217141234.72737-1-yun.zhou@windriver.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions