]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0ef1234026da45c2b5da34e46d302c62ec35971
treee2ea8b118d5ae025eee212283e1061f8cc7f4fdc
parentbf0973dc44fc258c449505073a88af73f7edadbc
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