Re: [PATCH 1/2] drm/vc4: hdmi: Check the device state in prepare()

2021-09-26 Thread Sudip Mukherjee
On Fri, Sep 24, 2021 at 2:55 PM Maxime Ripard 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

[PATCH 1/2] drm/vc4: hdmi: Check the device state in prepare()

2021-09-24 Thread Maxime Ripard
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()