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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user