diff options
| author | Sunny Luo <sunny.luo@amlogic.com> | 2026-07-31 09:08:27 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-04 18:06:01 +0100 |
| commit | 253dfb1839c6bc357aebe8aac4f1b4dcc20ee322 (patch) | |
| tree | e86a158b2b29d40aeab628ff556af188c27f0321 /tools/perf/scripts/python | |
| parent | 754d2bbd92f5ecef0eb4f5b1ac7b1417320a56ca (diff) | |
spi: amlogic: spisg: Fix the incorrect keep_ss of the last descriptor
The driver currently unconditionally clears CFG_KEEP_SS on the last
descriptor, causing the last transfer's cs_change setting to be ignored.
Record the cs_change value of the last SPI transfer and use it to
program CFG_KEEP_SS on the final descriptor. When a null descriptor is
inserted to implement the cs-hold delay, keep CFG_KEEP_SS set on the
preceding transfer descriptor and apply the recorded value to the final
descriptor instead.
This ensures the controller handles chip select correctly for the last
transfer regardless of whether a cs-hold delay is required.
Fixes: cef9991e04ae ("spi: Add Amlogic SPISG driver")
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://patch.msgid.link/20260731-a9-spisg-v3-3-a15da3f70029@amlogic.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
