On Tue, May 14, 2024 at 03:55:14PM +0300, Jani Nikula wrote:
> Prefer the struct drm_edid based functions for reading the EDID and
> updating the connector.
> 
> Simplify the flow by updating the EDID property when the EDID is read
> instead of at .get_modes.
> 
> Signed-off-by: Jani Nikula <jani.nik...@intel.com>
> 
> ---

The patch looks good to me, I'd like to hear an opinion from Doug (added
to CC).

Reviewed-by: Dmitry Baryshkov <dmitry.barysh...@linaro.org>

What is the merge strategy for the series? Do you plan to pick up all
the patches to drm-misc or should we pick up individual patches into
driver trees?


> 
> Cc: Rob Clark <robdcl...@gmail.com>
> Cc: Abhinav Kumar <quic_abhin...@quicinc.com>
> Cc: Dmitry Baryshkov <dmitry.barysh...@linaro.org>
> Cc: Sean Paul <s...@poorly.run>
> Cc: Marijn Suijten <marijn.suij...@somainline.org>
> Cc: linux-arm-...@vger.kernel.org
> Cc: freedr...@lists.freedesktop.org
> ---
>  drivers/gpu/drm/msm/dp/dp_display.c | 11 +++----
>  drivers/gpu/drm/msm/dp/dp_panel.c   | 47 +++++++++--------------------
>  drivers/gpu/drm/msm/dp/dp_panel.h   |  2 +-
>  3 files changed, 20 insertions(+), 40 deletions(-)

[skipped]

> @@ -249,10 +228,12 @@ void dp_panel_handle_sink_request(struct dp_panel 
> *dp_panel)
>       panel = container_of(dp_panel, struct dp_panel_private, dp_panel);
>  
>       if (panel->link->sink_request & DP_TEST_LINK_EDID_READ) {
> +             /* FIXME: get rid of drm_edid_raw() */

The code here can get use of something like drm_edid_smth_checksum().
'Something', because I could not come up with the word that would make
it clear that it is the declared checksum instead of the actual /
computed one.

> +             const struct edid *edid = drm_edid_raw(dp_panel->drm_edid);
>               u8 checksum;
>  
> -             if (dp_panel->edid)
> -                     checksum = dp_panel_get_edid_checksum(dp_panel->edid);
> +             if (edid)
> +                     checksum = dp_panel_get_edid_checksum(edid);
>               else
>                       checksum = dp_panel->connector->real_edid_checksum;
>  

-- 
With best wishes
Dmitry

Reply via email to