platform: msm_shared: mark all partition active for first bootup.
Mark all parition active for first bootup.
Change-Id: Ic25e9e599a61821b5a9b4ac7da2b9a90ae9237fa
diff --git a/platform/msm_shared/ab_partition_parser.c b/platform/msm_shared/ab_partition_parser.c
index 5f3a384..9784481 100644
--- a/platform/msm_shared/ab_partition_parser.c
+++ b/platform/msm_shared/ab_partition_parser.c
@@ -53,7 +53,7 @@
/* local functions. */
static void attributes_update();
-
+static void mark_all_partitions_active(signed slot);
/*
Function: To read slot attribute of
of the partition_entry
@@ -299,13 +299,10 @@
~PART_ATT_UNBOOTABLE_VAL));
active_slot = SLOT_A;
+
/* This is required to mark all bits as active,
for fresh boot post fresh flash */
- partition_mark_active_slot(active_slot);
-
- if (!attributes_updated)
- attributes_updated = true;
-
+ mark_all_partitions_active(active_slot);
goto out;
}
}
@@ -470,9 +467,9 @@
for (i=0; i<partition_count; i++)
{
pname = (char *)partition_entries[i].name;
- #ifdef AB_DEBUG
+#ifdef AB_DEBUG
dprintf(INFO, "Transversing partition %s\n", pname);
- #endif
+#endif
/* 1. Find partition, if it is A/B enabled. */
for ( j = 0; j<AB_SUPPORTED_SLOTS; j++)
{