Rev 3031 | Rev 3192 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3031 | Rev 3120 | ||
---|---|---|---|
Line 182... | Line 182... | ||
182 | } |
182 | } |
Line 183... | Line 183... | ||
183 | 183 | ||
184 | for (i = 0; i < EDID_LENGTH; i++) |
184 | for (i = 0; i < EDID_LENGTH; i++) |
185 | csum += raw_edid[i]; |
185 | csum += raw_edid[i]; |
- | 186 | if (csum) { |
|
186 | if (csum) { |
187 | if (print_bad_edid) { |
- | 188 | DRM_ERROR("EDID checksum is invalid, remainder is %d\n", csum); |
|
Line 187... | Line 189... | ||
187 | DRM_ERROR("EDID checksum is invalid, remainder is %d\n", csum); |
189 | } |
188 | 190 | ||
189 | /* allow CEA to slide through, switches mangle this */ |
191 | /* allow CEA to slide through, switches mangle this */ |
190 | if (raw_edid[0] != 0x02) |
192 | if (raw_edid[0] != 0x02) |
Line 208... | Line 210... | ||
208 | } |
210 | } |
Line 209... | Line 211... | ||
209 | 211 | ||
Line 210... | Line 212... | ||
210 | return 1; |
212 | return 1; |
211 | 213 | ||
212 | bad: |
214 | bad: |
213 | if (raw_edid) { |
215 | if (raw_edid && print_bad_edid) { |
214 | printk(KERN_ERR "Raw EDID:\n"); |
216 | printk(KERN_ERR "Raw EDID:\n"); |
215 | // print_hex_dump_bytes(KERN_ERR, DUMP_PREFIX_NONE, raw_edid, EDID_LENGTH); |
217 | // print_hex_dump_bytes(KERN_ERR, DUMP_PREFIX_NONE, raw_edid, EDID_LENGTH); |
216 | } |
218 | } |