Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp188382rdb; Wed, 21 Feb 2024 23:56:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWxNOUzUAmhn8jtRmBHjg4xx0iP3rSej+k2ZFGYaMzZS27PZc4AOtG1xFptL2R/4Kph2xXnESHU+IPeq1C5YcGtgVXwo0knXIFDfW5cFw== X-Google-Smtp-Source: AGHT+IGuxvWcMzyob7tTblb5qomk54KgEGueCP3iPcXO5Vu/FzGWKXHdZMjtpZh6bzPov2S7VQUl X-Received: by 2002:a17:906:3b9a:b0:a3e:d75a:a56d with SMTP id u26-20020a1709063b9a00b00a3ed75aa56dmr5624715ejf.44.1708588588104; Wed, 21 Feb 2024 23:56:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708588588; cv=pass; d=google.com; s=arc-20160816; b=CED//OqMfTqZEArj5wAgvdPuXYjoolid5EMxDBmXocgXhi2hCYic2aIMinw4K5lDim pKKwX+CnU1LRdLd45GjXm9+pKLpBoEx8J0dZBiaZLellYnRmdemx5psFkx+fH7I/bo/2 /QXWsTZI+LHN/Yklnf5GKm6NSZDZELF89LUd94T433D40pHyukgrUN87Rc6T0IUvYoIZ LvufHaqCiudLbWuKT/98LPdQfQLe+1/nIJ3eT5bo5AVhWmbR36zKBrvdHIlDrWuMhoAn Ax+hRH/BUj30b1j5R4zC469JA85DCyGnQxmELvhAHhB03O1/HMMaxuKivD3IO8M9SFcI c38g== 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:message-id:subject:to :from:date; bh=T071kwW6AGN9OVr+c8rODq01oPBbSiwQjHxnnB0DcC8=; fh=lUJCr2hmG0A8Pf7oU9UK4NEs6cUMcRVBHnJCBuWVAGg=; b=iNT04ZtEDFBOsNYIdsr6DZ1FwVNRtwI7OhQl3r3fn4lWAnlrG4Tf7No7CCNUukSAFp WcviLhiuV/VHPYi2RfstawkB/hLCIOuRWRQPTdLFDMuNsnAb27bauMSAS5FWk8cH2I0N qZADgfC1rxO5fa+d82x/xoJxf7/6cNlCqYlDWCzq5Uw7p2lCiuodtoNVJIkYSiEhh8tG AG+oIzxEcbDZr8MniTA114tgKPJFP8fHTW8HKM/aSXTPzLpqpFJYA1eRFRulyT5tM9aJ GGqJdziYCn6MX98QnmBtXG5fQs754qB4kR5Z0ZhM0RxKTg5W/0rmRVHXyVSeDDiFP+A7 6kAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-76036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76036-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 g26-20020a170906199a00b00a3f8f41db1csi192212ejd.596.2024.02.21.23.56.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 23:56:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76036-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; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-76036-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76036-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 DADAF1F22758 for ; Thu, 22 Feb 2024 07:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 113DE17BBE; Thu, 22 Feb 2024 07:56:23 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 A6ACE17BA2 for ; Thu, 22 Feb 2024 07:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708588582; cv=none; b=a9JgpyxTtnh9yi2LnzilMMQYLVfh7CejwlvCpuZj31km6jMvvT6F5EDJZZEzggzFLcM8XKYTwDseEjf0gnEZEOEV6EC8Id2Xt9kFh6+bVjuC4lRx54xP7yPBn5Mi2BTd3DRakUAzV26l2er1e9uyZdmSdkUx8F4iVDYJ6tbUR2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708588582; c=relaxed/simple; bh=7qak9DSlKvtRj666+/v0dbhhOwMqEcQNSSCFeo0Ei54=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OVEgL30hXETxc8WYfbDyWTJ+WnWP92eBq6NwHPPp+Ea2QaPfNRxKnOSM73ils3+YdwJzpL4N7lDSYi6PsBrurXkCjKsymJSlybKkS/5RzASzUqRSY42Ufr3H79d2ndcBMohmNu/oIh4Rch2PRwhGC4+MguRjaCFq1ZXPiCCHzNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rd3w2-00081j-D8; Thu, 22 Feb 2024 08:56:02 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rd3w0-002Bno-Vd; Thu, 22 Feb 2024 08:56:00 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rd3w0-002i6S-2r; Thu, 22 Feb 2024 08:56:00 +0100 Date: Thu, 22 Feb 2024 08:56:00 +0100 From: Oleksij Rempel To: Wolfram Sang , Andi Shyti , linux-i2c@vger.kernel.org, Corey Minyard , Andrew Manley , 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: 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: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hi Wolfram, On Wed, Feb 21, 2024 at 11:54:54PM +0100, Wolfram Sang wrote: > On Wed, Feb 21, 2024 at 09:58:23PM +0100, Andi Shyti wrote: > > Hi Wolfram and Corey, > > > > On Wed, Feb 21, 2024 at 08:27:13PM +0100, Wolfram Sang wrote: > > > From: Corey Minyard > > > > > > 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. > > > > > > 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 > > > > is this a fix? > > In deed, it is: > > Fixes: f7414cd6923f ("i2c: imx: support slave mode for imx I2C driver") Looks good :) Are any action needed on my side? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |