commit | e2b5cc608b23418d5bcd5e2fe0b5d93593d02e97 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Mon Aug 14 01:48:45 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 22 15:17:52 2023 -0400 |
tree | f3a78e90fa17789164827111b166804ad3cea042 | |
parent | 3f9cff669bbc4ed48ede1705fbaf671f3f4ce0e1 [diff] |
disk: dos: Infer MBR partition sector size from underlying drive sector size Block devices with 4k sectors imply the MBR sectors are also 4k instead of regular 512B. Avoid hard-coding the 512B sector size and isntead read the current block device sector size from it, and if the sector size is larger than 512B, use the block device sector size. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>