From: Bradley Morgan <include@grrlz.net>
To: kauschluss@disroot.org
Cc: mk7.kang@samsung.com, trini@konsulko.com, u-boot@lists.denx.de,
Bradley Morgan <include@grrlz.net>
Subject: [PATCH] board: samsung: exynos-mobile: select largest userdata partition by size
Date: Sat, 11 Jul 2026 15:15:01 +0000 [thread overview]
Message-ID: <20260711151501.19853-1-include@grrlz.net> (raw)
The blkmap heuristic picks a partition to map for booting combined
images, which live in the userdata partition as it is the largest.
Compare info.size against largest_part_size rather than info.start,
which previously selected the partition with the highest start LBA.
Signed-off-by: Bradley Morgan <include@grrlz.net>
---
board/samsung/exynos-mobile/exynos-mobile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/samsung/exynos-mobile/exynos-mobile.c b/board/samsung/exynos-mobile/exynos-mobile.c
index d91e2e7d3f2..67f46831df2 100644
--- a/board/samsung/exynos-mobile/exynos-mobile.c
+++ b/board/samsung/exynos-mobile/exynos-mobile.c
@@ -228,7 +228,7 @@ static int exynos_blk_env_setup(void)
update_info.dfu_string = dfu_string;
}
- if (info.start > largest_part_size) {
+ if (info.size > largest_part_size) {
largest_part_start = info.start;
largest_part_size = info.size;
}
--
2.53.0
reply other threads:[~2026-07-11 19:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260711151501.19853-1-include@grrlz.net \
--to=include@grrlz.net \
--cc=kauschluss@disroot.org \
--cc=mk7.kang@samsung.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox