linux/drivers/firmware/google
Titouan Ameline de Cadeville 86e3bbc716 firmware: google: Skip failing entries instead of aborting populate
coreboot_table_populate() registers devices one by one. If
device_register() fails for one entry, the current code returns
immediately, leaving previously registered devices orphaned on the
coreboot bus with no cleanup path.

Since coreboot table entries are independent of each other, a failure
on one entry should not prevent the others from being registered.
This mirrors the strategy used by of_platform_populate(), which skips
individual failures rather than aborting.

Move ptr_entry increment before device_register(), log a warning on
failure, and continue the loop rather than aborting.

Signed-off-by: Titouan Ameline de Cadeville <titouan.ameline@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Acked-by: Brian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20260501094322.123160-1-titouan.ameline@gmail.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
2026-05-03 09:40:06 +08:00
..
cbmem.c firmware: google: Clean up include statements in coreboot_table.h 2026-02-20 14:38:20 +01:00
coreboot_table.c firmware: google: Skip failing entries instead of aborting populate 2026-05-03 09:40:06 +08:00
coreboot_table.h firmware: google: Export coreboot table entries 2026-02-20 14:38:21 +01:00
framebuffer-coreboot.c drm/sysfb: corebootdrm: Add DRM driver for coreboot framebuffers 2026-02-20 14:38:24 +01:00
gsmi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig drm/sysfb: corebootdrm: Add DRM driver for coreboot framebuffers 2026-02-20 14:38:24 +01:00
Makefile firmware: google: Implement cbmem in sysfs driver 2022-11-10 18:51:56 +01:00
memconsole-coreboot.c firmware: google: Clean up include statements in coreboot_table.h 2026-02-20 14:38:20 +01:00
memconsole-x86-legacy.c firmware: google: add missing MODULE_DESCRIPTION() macros 2024-06-11 03:34:05 +00:00
memconsole.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
memconsole.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 287 2019-06-05 17:36:37 +02:00
vpd_decode.c firmware: google: increment VPD key_len properly 2019-10-11 08:41:34 +02:00
vpd_decode.h firmware: google: check if size is valid when decoding VPD data 2019-09-04 13:31:28 +02:00
vpd.c Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00