Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c68d91e authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/i2c/g94-: return REPLY_M value on reads



This value represents the actual number of bytes recieved on the AUX
channel as the result of a read transaction.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1af5c410
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -152,6 +152,7 @@ g94_i2c_aux_xfer(struct nvkm_i2c_aux *obj, bool retry,
			AUX_TRACE(&aux->base, "rd %08x", xbuf[i / 4]);
			AUX_TRACE(&aux->base, "rd %08x", xbuf[i / 4]);
		}
		}
		memcpy(data, xbuf, *size);
		memcpy(data, xbuf, *size);
		*size = stat & 0x0000001f;
	}
	}


out:
out:
+1 −0
Original line number Original line Diff line number Diff line
@@ -152,6 +152,7 @@ gm200_i2c_aux_xfer(struct nvkm_i2c_aux *obj, bool retry,
			AUX_TRACE(&aux->base, "rd %08x", xbuf[i / 4]);
			AUX_TRACE(&aux->base, "rd %08x", xbuf[i / 4]);
		}
		}
		memcpy(data, xbuf, *size);
		memcpy(data, xbuf, *size);
		*size = stat & 0x0000001f;
	}
	}


out:
out: