File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ static u8 dp_panel_get_edid_checksum(struct edid *edid)
271
271
{
272
272
struct edid * last_block ;
273
273
u8 * raw_edid ;
274
- bool is_edid_corrupt ;
274
+ bool is_edid_corrupt = false ;
275
275
276
276
if (!edid ) {
277
277
DRM_ERROR ("invalid edid input\n" );
@@ -303,7 +303,12 @@ void dp_panel_handle_sink_request(struct dp_panel *dp_panel)
303
303
panel = container_of (dp_panel , struct dp_panel_private , dp_panel );
304
304
305
305
if (panel -> link -> sink_request & DP_TEST_LINK_EDID_READ ) {
306
- u8 checksum = dp_panel_get_edid_checksum (dp_panel -> edid );
306
+ u8 checksum ;
307
+
308
+ if (dp_panel -> edid )
309
+ checksum = dp_panel_get_edid_checksum (dp_panel -> edid );
310
+ else
311
+ checksum = dp_panel -> connector -> real_edid_checksum ;
307
312
308
313
dp_link_send_edid_checksum (panel -> link , checksum );
309
314
dp_link_send_test_response (panel -> link );
You can’t perform that action at this time.
0 commit comments