drm/edid: abstract an EDID block read helper
authorJani Nikula <jani.nikula@intel.com>
Mon, 11 Apr 2022 14:00:30 +0000 (17:00 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 14 Apr 2022 13:51:41 +0000 (16:51 +0300)
commit2deaf1c2561d5ec152ee2f2ce547a15b85d38b55
treee2ea8b118d5ae025eee212283e1061f8cc7f4fdc
parent89fb7536ad2fdcdaf95eee44b9e162d0522f48dc
drm/edid: abstract an EDID block read helper

We have an abstraction for the EDID base block read, yet duplicating the
retries and error handling for extension block reads. Introduce a more
generic EDID block read helper.

Switch to the helper piecemeal, starting with drm_edid_get_panel_id(),
which doesn't need or have access to the connector anyway.

The subtle change is switching from drm_edid_block_valid() to
edid_block_check(). We also status print once, not for every attempt.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/47560f7530e4a7b32b56cb9038178244fe30a4af.1649685475.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c