drm/exynos/dsi: refactor panel detection logic
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 24 Aug 2017 13:33:52 +0000 (15:33 +0200)
committerInki Dae <inki.dae@samsung.com>
Fri, 25 Aug 2017 02:26:13 +0000 (11:26 +0900)
commit295e7954c0d3fdbe0550d13e3cf4dd4604d42c68
tree4dfcdf9067bc7d3f9479332ee90a9a0b83948387
parent1ca582f10e212e29165f087705460d9de96eb9f4
drm/exynos/dsi: refactor panel detection logic

Description of drm_helper_hpd_irq_event clearly states that drivers
supporting hotplug events per connector should use different helper -
drm_kms_helper_hotplug_event. To achieve it following changes have
been performed:
- moved down all DSI ops - they require exynos_dsi_disable function
to be defined earlier,
- simplified exynos_dsi_detect - there is no real detection, it just
returns if panel is attached,
- DSI attach/detach callbacks attaches/detaches DRM panel and sets
connector status and other context fields accordingly, all this is
performed under mutex, as these callbacks are asynchronous.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dsi.c