[PATCH] drm/bridge: ite66121: Register HPD interrupt handler only when 'client->irq > 0'
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Sat Mar 16 17:43:37 UTC 2024
On Sat, 16 Mar 2024 at 18:05, Sui Jingfeng <sui.jingfeng at linux.dev> wrote:
>
> If a specific design doesn't wire IT66121's interrupt signal output pin up
> to the display controller side, then we should not register the interrupt
> handler. Such a decision is valid usage, as we can fall back to polling
> mode. So, don't make the assumption that a specific board always supports
> HPD. Carry out a sanity check on 'client->irq' before using it, fall back
> to polling mode if client->irq < 0 is true. Such a design increases the
> overall flexibility.
>
> Signed-off-by: Sui Jingfeng <sui.jingfeng at linux.dev>
> ---
> drivers/gpu/drm/bridge/ite-it66121.c | 19 ++++++++++++-------
> 1 file changed, 12 insertions(+), 7 deletions(-)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the dri-devel
mailing list