arm-trusted-firmware/drivers
Bogdan Roman 2fac89d126 fix(guid-partition): fix MBR header load
In the case of GPT, the UEFI specification requires that the PMBR
(Protective MBR) partition table contain one partition record, which
starts at LBA 1, containing the GPT Header. Hence, the field 'first_lba'
of the first partition table entry of the PMBR should always be set to 1
when GPT is used. However, this is not the case for plain MBR.

The function load_mbr_header() should also work for plain MBR
partitioning, so the check 'if (tmp.first_lba != 1)' has been relocated.

Change-Id: Iad990e61b2186c21f942537dfd140ed0e023ac4c
Signed-off-by: Bogdan Roman <bogdan-gabriel.roman@nxp.com>
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>
2025-04-11 13:53:00 +03:00
..
allwinner refactor(allwinner): use fdt_node_is_enabled() in AXP driver 2023-02-03 13:31:28 +00:00
amlogic refactor(console): disable getc() by default 2023-10-11 08:40:14 +02:00
arm fix(arm-drivers): typecast expressions to match data type 2025-03-09 22:02:53 +05:30
auth fix(tbbr): remove tbbr_cot_bl1_r64.c 2025-04-09 11:02:41 +01:00
brcm fix(tree): correct some typos 2023-05-09 15:57:12 +01:00
cadence fix(intel): refactor SDMMC driver for Altera products 2024-10-25 09:38:51 +08:00
cfi/v2m coverity: fix MISRA violations 2020-02-18 10:47:46 -06:00
clk feat(clk): add set_rate callback 2024-06-18 17:18:31 +03:00
console fix(console): typecast expressions to match data type 2025-03-09 22:02:53 +05:30
coreboot/cbmem_console/aarch64 Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
delay_timer refactor(delay-timer): add timer callback functions 2024-10-16 10:33:03 +02:00
fwu feat(fwu): add a function to obtain an alternate FWU bank to boot 2024-03-01 14:40:05 +05:30
gpio feat(io): add generic gpio spi bit-bang driver 2025-03-18 19:56:16 +01:00
imx fix: unify fallthrough annotations 2022-12-01 16:17:24 +00:00
intel/soc/stratix10/io io: change seek offset to signed long long 2020-01-10 21:14:57 +01:00
io chore(io): remove io_dummy driver 2023-04-28 15:45:43 +02:00
marvell refactor(console): disable getc() by default 2023-10-11 08:40:14 +02:00
measured_boot refactor(measured-boot): standardize function names 2025-04-10 09:27:56 +00:00
mentor/i2c Enable -Wlogical-op always 2019-11-19 08:53:21 -06:00
mmc fix(mmc): initialises response buffer with zeros 2023-09-16 10:42:39 +00:00
mtd fix(nand): reset the SLC NAND 2023-09-27 16:21:58 +02:00
nxp feat(s32g274a): enable sdhc clock 2025-02-18 09:59:04 +02:00
partition fix(guid-partition): fix MBR header load 2025-04-11 13:53:00 +03:00
rambus drivers/rambus: add TRNG-IP-76 driver 2021-02-11 09:43:18 +00:00
renesas fix(rcar3-drivers): disable A/B loader support by default 2024-11-10 16:09:55 +01:00
rpi3 fix(rpi3): use correct define for GPIO reg_clr 2024-08-21 11:53:27 -05:00
scmi-msg feat(scmi): add scmi sensor support 2024-02-27 14:29:53 +08:00
st refactor(st-pmic): use LOG_LEVEL for regulator debug output 2025-04-01 12:18:34 +02:00
synopsys Merge changes from topic "jc/shift-overflow" into integration 2019-07-16 10:11:27 +00:00
ti feat(ti): add support for TI mailbox driver 2025-04-07 21:04:49 +05:30
tpm feat(tpm): add Infineon SLB9670 GPIO SPI config 2025-03-18 19:57:56 +01:00
ufs chore(ufs): refactor ufs_get_device_info 2024-02-20 02:19:19 -08:00
usb fix(usb): correct type in message 2022-02-15 18:09:51 +01:00