diff options
author | Douglas Anderson <dianders@chromium.org> | 2022-10-21 23:07:07 +0300 |
---|---|---|
committer | Douglas Anderson <dianders@chromium.org> | 2022-11-15 01:03:06 +0300 |
commit | 69c7717c20cc87105b8b54ba43d12ca4e432a1a5 (patch) | |
tree | 49f9e8c40233a13d53304ba7b636146fe19ea294 /drivers/gpu/drm | |
parent | 6d0bfef7dafd46e6e29e9f69baf8d0fdb3006f2c (diff) | |
download | linux-69c7717c20cc87105b8b54ba43d12ca4e432a1a5.tar.xz |
drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error
If we fail to get a valid panel ID in drm_edid_get_panel_id() we'd
like to see the EDID that was read so we have a chance of
understanding what's wrong. There's already a function for that, so
let's call it in the error case.
NOTE: edid_block_read() has a retry loop in it, so actually we'll only
print the block read back from the final attempt. This still seems
better than nothing.
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221021130637.1.I8c2de0954a4e54e0c59a72938268e2ead91daa98@changeid
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index b2d61c05f559..1b0b0f85af29 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2799,6 +2799,8 @@ u32 drm_edid_get_panel_id(struct i2c_adapter *adapter) if (edid_block_status_valid(status, edid_block_tag(base_block))) panel_id = edid_extract_panel_id(base_block); + else + edid_block_dump(KERN_NOTICE, base_block, 0); kfree(base_block); |