1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-23 05:34:18 +00:00

drm/i915/gmbus: fix spurious timeout on 512-byte burst reads

From Samasth Norway Ananda
842aa6103b6f286e2bcee395b38807d3ae0d0b26 in linux-6.18.y/6.18.21
08441f10f4dc09fdeb64529953ac308abc79dd38 in mainline linux
This commit is contained in:
jsg
2026-04-07 09:32:15 +00:00
parent f93360f79a
commit afebcd8b6c

View File

@@ -605,8 +605,10 @@ gmbus_xfer_read_chunk(struct intel_display *display,
val = intel_de_read_fw(display, GMBUS3(display));
do {
if (extra_byte_added && len == 1)
if (extra_byte_added && len == 1) {
len--;
break;
}
*buf++ = val & 0xff;
val >>= 8;