drm/vc4: Support the case where the DSI device is disabled
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 9 May 2018 13:00:42 +0000 (15:00 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Jul 2018 15:59:05 +0000 (17:59 +0200)
commit1b9883eae82251b742627ebd9d544d1b1bddf121
tree8892e563b2b551148ce7c5a604b9350a6e3c8885
parent2e64a174179a144742fa70f09803a012aceca476
drm/vc4: Support the case where the DSI device is disabled

Having a device with a status property != "okay" in the DT is a valid
use case, and we should not prevent the registration of the DRM device
when the DSI device connected to the DSI controller is disabled.

Consider the ENODEV return code as a valid result and do not expose the
DSI encoder/connector when it happens.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180509130042.9435-5-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_dsi.c