summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2018-04-26 11:07:00 +0300
committerThierry Reding <treding@nvidia.com>2018-05-18 11:22:06 +0200
commit0c08754b59da5557532d946599854e6df28edc22 (patch)
treef0ffc11a747bc9d185ec6d62bf8a0ec288cc1e49 /drivers/gpu/drm/panel
parent38992c57c9c8425dc9cb75efe6f9b9255ea627a0 (diff)
downloadlinux-stable-0c08754b59da5557532d946599854e6df28edc22.tar.gz
linux-stable-0c08754b59da5557532d946599854e6df28edc22.tar.bz2
linux-stable-0c08754b59da5557532d946599854e6df28edc22.zip
drm/panel: Add device_link from panel device to DRM device
Add device_link from panel device (supplier) to DRM device (consumer) when drm_panel_attach() is called. This patch should protect the master DRM driver if an attached panel driver unbinds while it is in use. The device_link should make sure the DRM device is unbound before the panel driver becomes unavailable. The device_link is removed when drm_panel_detach() is called. The drm_panel_detach() should be called by the consumer DRM driver, not the panel driver, otherwise both drivers are racing to delete the same link. Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/b53584fd988d045c13de22d81825395b0ae0aad7.1524727888.git.jsarha@ti.com
Diffstat (limited to 'drivers/gpu/drm/panel')
0 files changed, 0 insertions, 0 deletions