commit | c1ee5569891f11cbb1dfb49af22144adddca55c8 | [log] [tgz] |
---|---|---|
author | Taeyang Choi <taeyang.choi@samsung.com> | Wed Jan 24 15:25:13 2024 +0900 |
committer | Will McVicker <willmcvicker@google.com> | Fri May 17 01:15:01 2024 -0700 |
tree | df05f5d2f44a704a4776d6bc208dadf31b267f7c | |
parent | 0f4488d2b3e64414dc335dc99b4ef8f898600bc8 [diff] |
spi: s3c64xx: reject transfer request if suspended Due to the changes of spi.c, spi controller is in danger to lost its message by ->resume() callback. [Resume path] s3c64xx_spi_resume_operation pm_runtime_force_resume spi_master_resume spi_start_queue controller->cur_msg = NULL; [Transfer path] __spi_sync __spi_transfer_message_noqueue ctlr->cur_msg = msg __spi_pump_transfer_message s3c64xx_spi_transfer_one_message spi_finalize_current_message //access controller->cur_msg ctlr->cur_msg = NULL As two paths could run in parallel, the cur_msg can be NULL while doing transfer. Reject request if the controller is in suspend, and don't call the finalize function if we lost cur_msg already. ** change of spi.c ** https://lore.kernel.org/linux-spi/YrYfFiiYuvazKBtu@sirena.org.uk/T/ BUG: 319405160 Signed-off-by: Taeyang Choi <taeyang.choi@samsung.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:43016e70f6cd49ea3a6ce78dc266a295ddaad06b) (cherry picked from https://partner-android-review.googlesource.com/q/commit:daeeb90c4cbede5acd5f0e032a3ad6c9f982b4ae) Merged-In: I4d5940b9ae789ed7b1b5f5656c078624df279f34 Change-Id: I4d5940b9ae789ed7b1b5f5656c078624df279f34
# Files are copied to out/slider/dist $ tools/bazel run --config=fast //private/google-modules/soc/gs:slider_dist
See build/kernel/kleaf/README.md
for details.
Note: ABI monitoring is not supported on android-mainline
branch.
# Update symbol list common/android/abi_gki_aarch64_pixel $ tools/bazel run --config=fast //private/google-modules/soc/gs:slider_abi_update_symbol_list # Update ABI common/android/abi_gki_aarch64.xml $ tools/bazel run //common:kernel_aarch64_abi_update