linux/drivers/gpu/drm/arm/display/komeda
Gustavo Kenji Mendonça Kaneko 6502eb8cfc drm/arm/komeda: fix error handling for clk_prepare_enable() and callers
komeda_dev_resume() calls clk_prepare_enable() without checking the
return value. If the clock fails to enable, the function returns 0
(success) while IRQs are enabled and IOMMU is connected on potentially
unclocked hardware, causing undefined behavior on resume.

Propagate the error from clk_prepare_enable() and fix all call sites
in komeda_drv.c that previously ignored the return value of
komeda_dev_resume():

- komeda_platform_probe(): if resume fails, jump to err_destroy_mdev
  (skipping the suspend call, since the clock was never enabled)
- komeda_pm_resume(): propagate the error and skip
  drm_mode_config_helper_resume() on failure

This issue was found by code review without access to Komeda hardware.

Signed-off-by: Gustavo Kenji Mendonça Kaneko <kaneko.dev@pm.me>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260609130828.1066038-1-kaneko.dev@pm.me
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
2026-06-30 15:26:54 +01:00
..
d71 drm/komeda: Add support for Arm China Linlon-D6 2026-03-24 16:08:54 +00:00
komeda_color_mgmt.c drm/komeda: remove unused struct 'gamma_curve_segment' 2024-05-31 12:09:51 +01:00
komeda_color_mgmt.h
komeda_crtc.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
komeda_dev.c drm/arm/komeda: fix error handling for clk_prepare_enable() and callers 2026-06-30 15:26:54 +01:00
komeda_dev.h
komeda_drv.c drm/arm/komeda: fix error handling for clk_prepare_enable() and callers 2026-06-30 15:26:54 +01:00
komeda_event.c
komeda_format_caps.c
komeda_format_caps.h
komeda_framebuffer.c Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00
komeda_framebuffer.h drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
komeda_kms.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
komeda_kms.h drm/arm/komeda: Move pipeline prints to after the entire pipeline has been enabled 2024-05-10 11:26:07 +01:00
komeda_pipeline_state.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
komeda_pipeline.c drm/arm/komeda: Move pipeline prints to after the entire pipeline has been enabled 2024-05-10 11:26:07 +01:00
komeda_pipeline.h drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
komeda_plane.c drm: Rename struct drm_atomic_state to drm_atomic_commit 2026-05-04 14:05:04 +10:00
komeda_private_obj.c drm/atomic: Remove state argument to drm_atomic_private_obj_init 2026-03-20 10:03:11 +01:00
komeda_wb_connector.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2024-05-10 04:34:52 +09:00