[PATCH v3 27/50] drm/omap: hdmi5: Rework EDID read to isolate data read

Tomi Valkeinen tomi.valkeinen at ti.com
Tue Dec 17 12:36:21 UTC 2019


On 11/12/2019 00:57, Laurent Pinchart wrote:
> In preparation of adding DRM bridge support to the hdmi5 encoder code,
> rework the EDID read to isolate data read.
> 
> The hdmi_read_edid() function is the main entry point. It performs all
> initialisation steps required prior to reading the EDID (such as
> ensuring the device is powered on), as well as corresponding cleanup
> steps afterwards. EDID read itself is handled by hdmi_read_edid_data()
> that calls the hdmi5_core_ddc_read() function to read individual blocks.
> 
> This new code architecture will allow reusing hdmi_read_edid() and
> hdmi5_core_ddc_read() for the drm_bridge EDID read implementation, while
> swapping out hdmi_read_edid_data() for the DRM drm_do_get_edid()
> function.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> Changes since v2:
> 
> - Expand commit message
> ---
>   drivers/gpu/drm/omapdrm/dss/hdmi5.c      | 89 ++++++++++++++----------
>   drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 48 +++----------
>   drivers/gpu/drm/omapdrm/dss/hdmi5_core.h |  5 +-
>   3 files changed, 65 insertions(+), 77 deletions(-)

Reviewed-by: Tomi Valkeinen <tomi.valkeinen at ti.com>

  Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki


More information about the dri-devel mailing list