for (j = 1; j <= edid->extensions; j++) {
void *block = edid + j;
- int try;
- for (try = 0; try < 4; try++) {
- if (read_block(context, block, j, EDID_LENGTH))
- goto out;
- if (drm_edid_block_valid(block, j, false, NULL))
- break;
- }
+ status = edid_block_read(block, j, read_block, context);
- if (try == 4)
+ edid_block_status_print(status, block, j);
+
+ if (!edid_block_status_valid(status, edid_block_tag(block))) {
+ if (status == EDID_BLOCK_READ_FAIL)
+ goto out;
invalid_blocks++;
+ }
}
if (invalid_blocks) {