summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2022-05-12 11:32:52 -0500
committerAnand Gadiyar <gadiyar@ti.com>2022-05-12 11:49:16 -0500
commitb7ab6e41f8ec83d58ec74ef7e9c22e42e86ab1a7 (patch)
tree7d16ca24ba29e6588c9cef16ce4deaa1f7199d96 /include
parent71d043d5a82668343e4f210f78a63c85602bc44b (diff)
cmd: ab_select: Don't count boot-to-recovery as a boot attempt.
The slot rollback system is intended for normal boot failures after an OTA, and therefore, we should not attempt to change slots based on a failure to boot to recovery (or any other non-normal boot sequence). Signed-off-by: Ram Muthiah <rammuthiah@google.com> Link: https://android-review.googlesource.com/c/platform/external/u-boot/+/1446441 Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r--include/android_ab.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/android_ab.h b/include/android_ab.h
index 0941eb6b9cc..6b003889dcb 100644
--- a/include/android_ab.h
+++ b/include/android_ab.h
@@ -28,8 +28,11 @@ struct disk_partition;
*
* @param[in] dev_desc Place to store the device description pointer
* @param[in] part_info Place to store the partition information
+ * @param[in] normal_boot True if a normal boot, false if booting to recovery.
* @return The slot number (>= 0) on success, or a negative on error
*/
-int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info);
+int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info,
+ bool normal_boot);
+
#endif /* __ANDROID_AB_H */