]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panel: ilitek-ili9881c: do not fail probe if iovcc is absent
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 13 Jul 2026 08:22:13 +0000 (10:22 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 22 Jul 2026 14:17:08 +0000 (16:17 +0200)
commitfa989f2cc351aec3643350489553c9bdfb3adf9f
treea067438f529f0fff4b7ace983ffc9c3a6695efe8
parent07e769ba3d82ac614725c81c512a8b54d33f2c9e
drm/panel: ilitek-ili9881c: do not fail probe if iovcc is absent

Commit 4c95b2b7d49e ("drm/panel: ilitek-ili9881c: support Waveshare
7.0" DSI panel") adds an additional iovcc regulator that other
Ilitek ili9881c based panels apparently do not have or need.

The commit goes out of its way to make usage of this new regulator
optional, dutifully testing if the field in `struct ili9881c` is NULL
before touching the new regulator. However, in the probe function,
it unconditionally fails if devm_regulator_get_optional returns an
error.

devm_regulator_get_optional() returns -ENODEV if the regulator is
missing, causing probe to fail for other panels that do not have
an iovcc-supply set in the device tree.

Fixes: 4c95b2b7d49e ("drm/panel: ilitek-ili9881c: support Waveshare 7.0" DSI panel")
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260713082213.75759-1-david.oberhollenzer@sigma-star.at
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c