From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF8871E51F for ; Thu, 30 Nov 2023 10:17:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fTuwUGXK" Received: by mail.gandi.net (Postfix) with ESMTPSA id 2FE4EFF80F; Thu, 30 Nov 2023 10:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701339436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wbfoor/K42HcFZmg+FPYUl7SQccR75WTDfEvqXRzmjI=; b=fTuwUGXKtMGJI+ONtelQaDLx5QvoQtmC2cHVCbuWSlmVnscbOQfgqas9yyPsxot9afZhJi 4VTwJxuIrwizHZyieFoZa/cNFeO/lNJhKOCANrc5JVUmnbZQu/2vpk94s1Aw5FREVnfBf5 6NBmht5rtizrlFHouxGxqr9c4i/WC9RX+a60Xv7GHH4H7Olj2+5B8QPZxHXflh0EMwjE03 sDstrn6gaH7sn3cHjOnmsKAu218FDfxs4GFWxNnLIHjLoBJ6L8ScBmlgfWqRNPhvSNdXbl 0xJrseDvDfigWZMRHUH21LuuXFsPlSVOF42fjJrbEkZgWFw6VRihDkrgB4LGVg== Date: Thu, 30 Nov 2023 11:17:12 +0100 From: Miquel Raynal To: Frank Li Cc: alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, zbigniew.lukwinski@linux.intel.com Subject: Re: [PATCH v4 3/6] i3c: add actual_len in i3c_priv_xfer Message-ID: <20231130111712.6438de35@xps-13> In-Reply-To: <20231129221225.387952-4-Frank.Li@nxp.com> References: <20231129221225.387952-1-Frank.Li@nxp.com> <20231129221225.387952-4-Frank.Li@nxp.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Frank, Frank.Li@nxp.com wrote on Wed, 29 Nov 2023 17:12:22 -0500: > In MIPI I3C Specification: >=20 > "Ninth Bit of SDR Target Returned (Read) Data as End-of-Data: In I2C, the > ninth Data bit from Target to Controller is an ACK by the Controller. By > contrast, in I3C this bit allows the Target to end a Read, and allows the > Controller to Abort a Read. In SDR terms, the ninth bit of Read data is > referred to as the T-Bit (for =E2=80=98Transition=E2=80=99)" >=20 > I3C allow devices early terminate data transfer. So need "actual_len" fie= ld > to indicate how much get by i3c_priv_xfer. >=20 > Signed-off-by: Frank Li Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l