Re: [PATCH 10/10] drm/tidss: Fix atomic_flush check

2023-11-02 Thread Francesco Dolcini
On Wed, Nov 01, 2023 at 11:17:47AM +0200, Tomi Valkeinen wrote: > tidss_crtc_atomic_flush() checks if the crtc is enabled, and if not, > returns immediately as there's no reason to do any register changes. > > However, the code checks for 'crtc->state->enable', which does not > reflect the actual

Re: [PATCH 10/10] drm/tidss: Fix atomic_flush check

2023-11-02 Thread Tomi Valkeinen
On 01/11/2023 16:56, Laurent Pinchart wrote: Hi Tomi, Thank you for the patch. On Wed, Nov 01, 2023 at 11:17:47AM +0200, Tomi Valkeinen wrote: tidss_crtc_atomic_flush() checks if the crtc is enabled, and if not, returns immediately as there's no reason to do any register changes. However, the

Re: [PATCH 10/10] drm/tidss: Fix atomic_flush check

2023-11-01 Thread Laurent Pinchart
Hi Tomi, Thank you for the patch. On Wed, Nov 01, 2023 at 11:17:47AM +0200, Tomi Valkeinen wrote: > tidss_crtc_atomic_flush() checks if the crtc is enabled, and if not, > returns immediately as there's no reason to do any register changes. > > However, the code checks for 'crtc->state->enable',

[PATCH 10/10] drm/tidss: Fix atomic_flush check

2023-11-01 Thread Tomi Valkeinen
tidss_crtc_atomic_flush() checks if the crtc is enabled, and if not, returns immediately as there's no reason to do any register changes. However, the code checks for 'crtc->state->enable', which does not reflect the actual HW state. We should instead look at the 'crtc->state->active' flag. This