Skip to content

Commit

Permalink
drm/exynos: resolve infinite loop issue on non multi-platform
Browse files Browse the repository at this point in the history
This patch resovles the infinite loop issue incurred
when Exyno drm driver is enabled but all kms drivers
are disabled on Exynos board by returning -EPROBE_DEFER
only in case that there is kms device registered.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Inki Dae committed Nov 10, 2014
1 parent 06a2f5c commit f7c2f36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/exynos/exynos_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ static struct component_match *exynos_drm_match_add(struct device *dev)

mutex_lock(&drm_component_lock);

/* Do not retry to probe if there is no any kms driver regitered. */
if (list_empty(&drm_component_list)) {
mutex_unlock(&drm_component_lock);
return ERR_PTR(-ENODEV);
}

list_for_each_entry(cdev, &drm_component_list, list) {
/*
* Add components to master only in case that crtc and
Expand Down

0 comments on commit f7c2f36

Please sign in to comment.