Re: [PATCH 1/2] drm/vc4: hdmi: Take our lock to reset the link

2022-10-28 Thread Maxime Ripard
On Mon, 24 Oct 2022 11:36:33 +0200, max...@cerno.tech wrote: > We access some fields protected by our internal mutex in > vc4_hdmi_reset_link() (saved_adjusted_mode, output_bpc, output_format) > and are calling functions that need to have that lock taken > (vc4_hdmi_supports_scrambling()). > > How

Re: [PATCH 1/2] drm/vc4: hdmi: Take our lock to reset the link

2022-10-27 Thread Javier Martinez Canillas
Hello Maxime, On 10/24/22 11:36, max...@cerno.tech wrote: > We access some fields protected by our internal mutex in > vc4_hdmi_reset_link() (saved_adjusted_mode, output_bpc, output_format) > and are calling functions that need to have that lock taken > (vc4_hdmi_supports_scrambling()). > > Howev

[PATCH 1/2] drm/vc4: hdmi: Take our lock to reset the link

2022-10-24 Thread maxime
We access some fields protected by our internal mutex in vc4_hdmi_reset_link() (saved_adjusted_mode, output_bpc, output_format) and are calling functions that need to have that lock taken (vc4_hdmi_supports_scrambling()). However, the current code doesn't lock that mutex. Let's make sure it does.