UMS already offers CONFIG_CMD_UMS_ABORT_KEYED, which makes it possible to bail out of that mode by pressing any button, rather than only responding to ctrl-c. This is particularly useful for phones, where it's not possible (yet... hmmmmm...) to send a ctrl-c command with the available phone buttons.
This simple patch series introduces equivalent behaviour for fastboot, and enables it in the qcom-phone.config fragment where it's most useful. Signed-off-by: Sam Day <[email protected]> --- Changes in v2: - Fixed helpstring for new kconfig option to span 2 lines, in order to please checkpatch.pl - Added a note about the new config option to doc/android/fastboot.rst - Link to v1: https://lore.kernel.org/r/[email protected] --- Sam Day (2): cmd: fastboot: Add keyed abort option board: qualcomm: phone: enable CMD_FASTBOOT_ABORT_KEYED board/qualcomm/qcom-phone.config | 1 + board/qualcomm/qcom-phone.env | 2 +- cmd/Kconfig | 7 +++++++ cmd/fastboot.c | 9 ++++++++- doc/android/fastboot.rst | 4 ++++ 5 files changed, 21 insertions(+), 2 deletions(-) --- base-commit: 1e80ee41441c612f05787a93bbef4e6e422e29d1 change-id: 20260602-fastboot-abort-keyed-1064ecc677de prerequisite-change-id: 20260615-fastboot-doc-ctrl-c-3fac73518cfe:v1 prerequisite-patch-id: b948dead04c3a24a47a8d8dd7f03590565a8ff6c Best regards, -- Sam Day <[email protected]>

