]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ingenic: Fix driver not probing when IPU port is missing
authorPaul Cercueil <paul@crapouillou.net>
Thu, 27 Aug 2020 11:44:04 +0000 (13:44 +0200)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 30 Aug 2020 22:52:40 +0000 (00:52 +0200)
commit64edcf76acf792d1046af1c2d4973dd1d31c05f5
tree51c70bce6773b8642ec46c681d99f369a1199fdd
parent9acee9cce624f79a558f291b7b375c702b1ad729
drm/ingenic: Fix driver not probing when IPU port is missing

Even if support for the IPU was compiled in, we may run on a device
(e.g. the Qi LB60) where the IPU is not available, or simply with an old
devicetree without the IPU node. In that case the ingenic-drm refused to
probe.

Fix the driver so that it will probe even if the IPU node is not present
in devicetree (but then IPU support is disabled of course).

v2: Take a different approach

Fixes: 1e79bb3bcc65 ("drm/ingenic: Add support for the IPU")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200827114404.36748-2-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c