Skip to content

Commit 06a2f5c

Browse files
committed
drm/exynos: resolve infinite loop issue on multi-platform
This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later. Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 66338fe commit 06a2f5c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎drivers/gpu/drm/exynos/exynos_drm_drv.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,18 @@ static int exynos_drm_init(void)
741741
{
742742
int ret;
743743

744+
/*
745+
* Register device object only in case of Exynos SoC.
746+
*
747+
* Below codes resolves temporarily infinite loop issue incurred
748+
* by Exynos drm driver when using multi-platform kernel.
749+
* So these codes will be replaced with more generic way later.
750+
*/
751+
if (!of_machine_is_compatible("samsung,exynos3") &&
752+
!of_machine_is_compatible("samsung,exynos4") &&
753+
!of_machine_is_compatible("samsung,exynos5"))
754+
return -ENODEV;
755+
744756
exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1,
745757
NULL, 0);
746758
if (IS_ERR(exynos_drm_pdev))

0 commit comments

Comments
 (0)