diff options
author | Inki Dae <inki.dae@samsung.com> | 2014-05-29 18:28:02 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2014-06-02 14:29:39 +0900 |
commit | df5225bc9a87f1589a17797ee8e193608e4f3a9e (patch) | |
tree | 6958bf8ac68f4f3f8cbc19d5526adc3155846c80 /drivers/gpu/drm/exynos/exynos_drm_drv.h | |
parent | 2e1ce1a1dd7c110faa8b99f0b76d1382e5de61f1 (diff) | |
download | lwn-df5225bc9a87f1589a17797ee8e193608e4f3a9e.tar.gz lwn-df5225bc9a87f1589a17797ee8e193608e4f3a9e.zip |
drm/exynos: consider deferred probe case
This patch makes sure that exynos drm framework handles deferred
probe case correctly.
Sub drivers could be probed before resources, clock, regulator,
phy or panel, are ready for them so we should make sure that exynos
drm core waits until all resources are ready and sub drivers are
probed correctly.
Chagelog v2:
- Make sure that exynos drm core tries to bind sub drivers only in case that
they have a pair: crtc and encoder/connector components should be a pair.
- Remove unnecessary patch:
drm/exynos: mipi-dsi: consider panel driver-deferred probe
- Return error type correctly.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index e82e620c2e52..36535f398848 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -42,6 +42,13 @@ struct drm_connector; extern unsigned int drm_vblank_offdelay; +/* This enumerates device type. */ +enum exynos_drm_device_type { + EXYNOS_DEVICE_TYPE_NONE, + EXYNOS_DEVICE_TYPE_CRTC, + EXYNOS_DEVICE_TYPE_CONNECTOR, +}; + /* this enumerates display type. */ enum exynos_drm_output_type { EXYNOS_DISPLAY_TYPE_NONE, @@ -354,12 +361,12 @@ void exynos_drm_remove_vidi(void); int exynos_drm_create_enc_conn(struct drm_device *dev, struct exynos_drm_display *display); -struct component_ops; int exynos_drm_component_add(struct device *dev, - const struct component_ops *ops); + enum exynos_drm_device_type dev_type, + enum exynos_drm_output_type out_type); void exynos_drm_component_del(struct device *dev, - const struct component_ops *ops); + enum exynos_drm_device_type dev_type); extern struct platform_driver fimd_driver; extern struct platform_driver dp_driver; |