]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5f9f44779e20b62d267fb9730beec05338cee01
tree4dfcdf9067bc7d3f9479332ee90a9a0b83948387
parentbd213c712bac43fd3472ee939e87dea65d93f902
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