Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp4342rdb; Wed, 21 Feb 2024 14:55:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6qwxEWgshsLXVWGdSJH6WPV1HgF7ru4vkUHqikpp8XqofefHTQHdcJSpcTVE2kpNOMI4fovQeMajrO4yTmbTDxhc235lQrF2HhC7imQ== X-Google-Smtp-Source: AGHT+IHsccKBJQ0dxhdUeOL6IhwSYvKCT0Aw/bdlupBJSwPHXrQobd/ugugE8LREBNKhXb1sBh38 X-Received: by 2002:aa7:cb51:0:b0:565:2581:8c3e with SMTP id w17-20020aa7cb51000000b0056525818c3emr535741edt.8.1708556111056; Wed, 21 Feb 2024 14:55:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708556111; cv=pass; d=google.com; s=arc-20160816; b=oUa1GEmmfgrC28gQMG5WwUZoT2kKTTLFVhePg8tx2eMyLoyIPfsolF83e8PmQWklm4 Mi9+9Ng22stcNLe111hYGPv61beAz9B+VKKLk7XKI/tyvzEkkrsCdwtRQ8lo+RRrjaMK gY81n4nMMH8pR5kmAC6p7zCvLpN2eYBD+sAEOMBLxewSYyGCQiIb3tMMZZgQDt4uXhFk UqZAXa4wM/28JvVDSz+xXbTuCAq06EeVgSLjl2a9ELv+Mjx6MF0UZ1i2/ILzVC9d2yUp sUfQfmohn3XceK1mQb6HnWqfWS82Y2pODy7hZ3GeWSBn8qh51w+2hcQ4QkyF7/e9lHsR jUAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=pcbURWzdWl827aoKY3Vk/lQA+oXSGfG6yAhkFdHlVnI=; fh=dlK/Boi2nMDisTWkNT/K4vpnBUKlibIdU9TvUVme95M=; b=CGGgiMwnEgMkcrzZ4pkXtHz9+ym8EPPc195z7Pd2c+gBhQ9dID3IMMT4+VfqZydEba E02wTBGhk/c2F7KwgwLddDIjonlS3TWoXl2ODaqKKYqdSg+SSh5yiVVxwypLxk1I6lQn 3LVCvqTg79tAhfEplmvmRvJCAOoqgQOuHNNi78JWgobeChH00Wj2aW6TYtZt5Hk98Cvm /CSpnNwEb9oOM0+ZKzwpK1Mxkn8lwd7xhAWPCCRS3YCMPdEEE5c3osdVYX+5VB9p8EDv a6GMrKPJLQ6dvOwkTXSmru30EKDrzoIFGgw2XoG4kCT0auNDh/w/kzZF2LrP/L2Qbqwh feyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=R3dNp+Is; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-75620-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75620-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v1-20020a056402184100b0056173831870si4747604edy.321.2024.02.21.14.55.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 14:55:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75620-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=R3dNp+Is; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-75620-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75620-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C79A51F246D5 for ; Wed, 21 Feb 2024 22:55:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD6443FE36; Wed, 21 Feb 2024 22:55:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="R3dNp+Is" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 35E403B2AD for ; Wed, 21 Feb 2024 22:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708556102; cv=none; b=hKXLESwEb1zZDDEMmtEx7+KhKWlkwmiC8Q4HZAj57LXspm+PLv8BB81gIHCTuPoi7y+y7+1y4lDGxIe263xkMvrmI39/UhHy8JnNOLWkdyF+kceC0lKv19oAsfx4gE0jvMUGji3gx+ry54DJz1Dm8GThyqk4etIjF7YptX4x77o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708556102; c=relaxed/simple; bh=pcbURWzdWl827aoKY3Vk/lQA+oXSGfG6yAhkFdHlVnI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OmnmsCPZho9QRv8cgFzXt4aa69DjWozxK4/xqh4skp3GefrHRCSASCP8kE5n15mttRU09L4HAsT+FVfHFa8Dlqdi0Dp3dvQwqR6a8LRDNis0GnUhcZ3wsu0YHhFp8cy1n+vGhLPh/n5CvLK4wdUB8AgqRp10qNYn4y3BbcTKKjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=R3dNp+Is; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=pcbU RWzdWl827aoKY3Vk/lQA+oXSGfG6yAhkFdHlVnI=; b=R3dNp+IsGrfldwpg8zov udigOEzC0v1rv/ZerDAc/1dZTZ2rs5R8rBb2Q3APsfzeY92yicYUpa9P43vB5h5v ez533lHhPkHH/hAk1qa3SF5ZKpX5qIHX4NdQVLo8uh6RAsf5UhSK6po0vEpFuznA VfEdO1iMsCOXGgwuXoNnp7cgEA4plhw5EMB2DWeX7us0yK8EfrDlGijAArkByNpd k+aNfiNtrp2+npnYm+189jpHmd1jXVyC0VbkrZ1/eWsZAw1gnCXVyfUwS7fRf6zM JHbEHx6nAJ6sv/4ydmvUuCKJ4ZVy/9f+NwVjYUQVLflTIInOMNFL4EH964gp1nMR oQ== Received: (qmail 3765339 invoked from network); 21 Feb 2024 23:54:55 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 21 Feb 2024 23:54:55 +0100 X-UD-Smtp-Session: l3s3148p1@/zQgN+wRRJcujnsZ Date: Wed, 21 Feb 2024 23:54:54 +0100 From: Wolfram Sang To: Andi Shyti Cc: linux-i2c@vger.kernel.org, Corey Minyard , Andrew Manley , Oleksij Rempel , Pengutronix Kernel Team , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] i2c: imx: when being a target, mark the last read as processed Message-ID: Mail-Followup-To: Wolfram Sang , Andi Shyti , linux-i2c@vger.kernel.org, Corey Minyard , Andrew Manley , Oleksij Rempel , Pengutronix Kernel Team , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240221193013.14233-2-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wMLlim1uQUSFzSBp" Content-Disposition: inline In-Reply-To: --wMLlim1uQUSFzSBp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 21, 2024 at 09:58:23PM +0100, Andi Shyti wrote: > Hi Wolfram and Corey, >=20 > On Wed, Feb 21, 2024 at 08:27:13PM +0100, Wolfram Sang wrote: > > From: Corey Minyard > >=20 > > When being a target, NAK from the controller means that all bytes have > > been transferred. So, the last byte needs also to be marked as > > 'processed'. Otherwise index registers of backends may not increase. > >=20 > > Signed-off-by: Corey Minyard > > Tested-by: Andrew Manley > > Reviewed-by: Andrew Manley > > Reviewed-by: Oleksij Rempel > > [wsa: fixed comment and commit message to properly describe the case] > > Signed-off-by: Wolfram Sang >=20 > is this a fix? In deed, it is: Fixes: f7414cd6923f ("i2c: imx: support slave mode for imx I2C driver") --wMLlim1uQUSFzSBp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmXWfzoACgkQFA3kzBSg KbagAxAAn45Po3ZAJlfnoswOKe4rzonqmkLsAxS1Y5qgSdTMQyanU9l5JjsmyaPT xg/t4ZAzx2vwlGMUwQ9pC3Z3Il6LhHPmq598jn/3Vmj+A343ahRyLhWWHh5VP2qu iArpIvb98BUeaMdHKKew6Qh319lXMxRgpL1aMDJvWWEMMKJantsrTFywcp3N6WYQ R6QYENuvtChkG1MIAkiuDozlKbhxb3SzcXBsezMTuEHfOcCEsItnXdiwpo+FJ0pJ xhMw4d6G2I4Qq1xNNPGtmB5a0Xab0QWUKZ8xe0geV3lhWGVqRi+LX/R9CfEy6ge4 rk4nWiP4t8RQG/+S0nGBo/40zeTx8Bz6KYddR8HLFORH0sRzM07LbXrJMiEWvjjJ tx6a1MwWLJ8DE+Wa2UMRVQOrmJLXTr4rb/ONH4G3IKmSUeYD3qxZEnIp0MebIY4X J4j6DyRFS7sum6O3IouXiayOL7NSSITX1lt0+zLeVw2dh6aAx+PvrnCY46SKIl+s Ai/enUt4CZOt/8QWn5VyNhHBfo1hJIWLh91KQqhZ79k6/XEFj1g3TvnV91eGTqQU PFdPipawhcNqBnoZOB+DGPlqzUuiXwJuLgCaWCUtsec1Prm0sIQZ0mqyT6r/7W1B BsH8NWzA0G7I7wPCVmT3/QvWsBVeasc9Jn5X753nqQIh/Oq3p2U= =w2Tg -----END PGP SIGNATURE----- --wMLlim1uQUSFzSBp--