[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADVatmNKZGoLte9OJwRRurgWCWLVP1RDS9aoS_H1GkRa00xDig@mail.gmail.com>
Date: Sun, 26 Sep 2021 22:24:53 +0100
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Maxime Ripard <maxime@...no.tech>
Cc: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Thomas Zimmermann <tzimmermann@...e.de>,
Daniel Vetter <daniel.vetter@...el.com>,
David Airlie <airlied@...ux.ie>,
dri-devel <dri-devel@...ts.freedesktop.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] drm/vc4: hdmi: Check the device state in prepare()
On Fri, Sep 24, 2021 at 2:55 PM Maxime Ripard <maxime@...no.tech> wrote:
>
> Even though we already check that the encoder->crtc pointer is there
> during in startup(), which is part of the open() path in ASoC, nothing
> guarantees that our encoder state won't change between the time when we
> open the device and the time we prepare it.
>
> Move the sanity checks we do in startup() to a helper and call it from
> prepare().
>
> Fixes: 91e99e113929 ("drm/vc4: hdmi: Register HDMI codec")
> Signed-off-by: Maxime Ripard <maxime@...no.tech>
Tested-by: Sudip Mukherjee <sudipm.mukherjee@...il.com>
--
Regards
Sudip
Powered by blists - more mailing lists