Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp238887rdb; Thu, 22 Feb 2024 02:03:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWD7jTtXR+BfGzLJQGB8d9rHfJHBIvggmNKqscO0AsYfzTwK7/5ekL4TULZfU0GtgH0R99nAF91eXQ8k0X+61EhAmL6X9D+SuAOSWIReQ== X-Google-Smtp-Source: AGHT+IEtPzKX9OBj3gjCBSUONUnLX72llBvoaksFCQ73Za3ZzxJ8rpDRF/099aK9F/j3xyo6gvH7 X-Received: by 2002:aa7:da51:0:b0:564:e546:6cdc with SMTP id w17-20020aa7da51000000b00564e5466cdcmr3816214eds.22.1708596199557; Thu, 22 Feb 2024 02:03:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708596199; cv=pass; d=google.com; s=arc-20160816; b=YjvvBiBBZvmSq0gU5m3rOSH3/hCfvKbcLxLqj6XAvN/GmBwM8pcrHJ5TRgRbc2ZD08 uJA+7BAqwNr0TjJ2NLKMvkEA3LYpjx7DHV9FX1E7y6UStBxJ1sZaLAQOBIiWt/P5cy1y bOoXKX2tkPik+No5NHtZQoPHnb+yVKn+/6vAF60dz1g60iNDZsjsKWGHO7fcSbv2pl78 SjB8BLFt0Zh+WschfA6DgdDXFmkRdfyLYDvBlKaFgWGbYoK+HYwTZFgPkJkIDbcAaBhu MMuMHiljeWD8AQxSXSjbN9K4+59DqvCaf44lTssAT8O76JsZypEPVZbduy3S0L5z5Rbj qG9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from; bh=josPoKwwHgotKpFxBZxq0ZWWTFDhClfvQz9wXrgC6Rs=; fh=NICVxjP8g7NvUxa8sl9GVQZW1AiM6gkLXLpQfdi3MQY=; b=vLh8ijoOnZyZrHNAEP2AY6rCpuJNZ+kHepZrAJrV8HPMOLBh27Q+DR8yx3PB/zQbcB g4faeDxKQVXhMDJ4ZnvTafKxjdwm0PAz8b1Nbuf/IvrHWRt8pDCJQ2t2zyXqWg8ghePN IZkWm8hMzeLQJbO7LXL/UGSSjvPaN+r/0uGe2M7B6AwpEILUi2U4YKehLfrnHrznAfOk GFBRcd9HLcLAB2YkXR9K3OgfiDYcMVNn7jLyJgZl5mxl1xqdH/Hold5GknWm5q3fs82y ZOD+WxwD8fA5G2P2BO6Km3bwoxFt/NgzLR6lCJnqef3dvgl7zxJnGaFmeKrn6QMYlKKb P0Xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=etezian.org); spf=pass (google.com: domain of linux-kernel+bounces-76285-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 n22-20020a509356000000b00563cfa60977si5221310eda.360.2024.02.22.02.03.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:03:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76285-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=etezian.org); spf=pass (google.com: domain of linux-kernel+bounces-76285-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 4B6DF1F225E2 for ; Thu, 22 Feb 2024 10:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0825239860; Thu, 22 Feb 2024 10:03:14 +0000 (UTC) Received: from 13.mo561.mail-out.ovh.net (13.mo561.mail-out.ovh.net [188.165.33.202]) (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 97A36381B8 for ; Thu, 22 Feb 2024 10:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.165.33.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596193; cv=none; b=ROM5u3KTU+9z1vBN7xPSrPoFI6ZGyf+UdXuZ1tBtIKB/RdjMxcVdmGzgyAirxIeiS4djrD/aLSfI25iW0w9rmM1tsI2avh1fuJ3/RkvDPA/jTvw4li47e88ZpBtCTI7Zdj0S1VzZmKlWA/Pk9xtf0bVdeGyyerdf1GA6nnw6Okg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596193; c=relaxed/simple; bh=W+jnHVVB3ZRAg9EX2fNf/hRjYdScgr/CZdITpC+rZpA=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=r6zRHMZRTJyEYYgHbQV1I1yYz/rhtjxY8CHBT7g/rvujYgunMc8t/5ACFAGwIdUeJ7b5Qex86bcijUnAZUn4Qgomb9wOYr/zbfA8B4dimC5veAIwPn8MhX3klqNasggwRi6qpIq7MLhsIjK/WQURby+AyPzvm+PasSG6lBe3nH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=etezian.org; arc=none smtp.client-ip=188.165.33.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=etezian.org Received: from director4.ghost.mail-out.ovh.net (unknown [10.109.148.126]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 4TgRbg6FHlz1GZ0 for ; Thu, 22 Feb 2024 08:47:27 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-dnswc (unknown [10.111.174.115]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 922F11FD6F; Thu, 22 Feb 2024 08:47:24 +0000 (UTC) Received: from etezian.org ([37.59.142.107]) by ghost-submission-6684bf9d7b-dnswc with ESMTPSA id LdgvFRwK12VVngkAllgtww (envelope-from ); Thu, 22 Feb 2024 08:47:24 +0000 Authentication-Results:garm.ovh; auth=pass (GARM-107S0017b51d39a-e42a-4bc8-afd5-71473328faab, D266FE3A7B9817F169603FF0F8C90E47FA3D240B) smtp.auth=andi@etezian.org X-OVh-ClientIp:89.217.109.169 From: Andi Shyti To: linux-i2c@vger.kernel.org, Wolfram Sang Cc: 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 In-Reply-To: <20240221193013.14233-2-wsa+renesas@sang-engineering.com> References: <20240221193013.14233-2-wsa+renesas@sang-engineering.com> Subject: Re: [PATCH v3] i2c: imx: when being a target, mark the last read as processed Message-Id: <170859164340.336357.16059990973960196120.b4-ty@kernel.org> Date: Thu, 22 Feb 2024 09:47:23 +0100 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-Transfer-Encoding: 7bit X-Mailer: b4 0.12.4 X-Ovh-Tracer-Id: 729301668120365699 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrfeefgdduvdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvegjfhfukfffgggtgffosehtjeertdertdejnecuhfhrohhmpeetnhguihcuufhhhihtihcuoegrnhguihdrshhhhihtiheskhgvrhhnvghlrdhorhhgqeenucggtffrrghtthgvrhhnpeffteehudffvdfhudfgffdugfejjeduheehgeefgeeuhfeiuefghffgueffvdfgfeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduvdejrddtrddtrddupdekledrvddujedruddtledrudeiledpfeejrdehledrudegvddruddtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomheprghnughisegvthgviihirghnrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehiedupdhmohguvgepshhmthhpohhuth Hi On Wed, 21 Feb 2024 20:27:13 +0100, Wolfram Sang wrote: > 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. > > Applied to i2c/i2c-host-fixes on git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git Thank you, Andi Patches applied =============== [1/1] i2c: imx: when being a target, mark the last read as processed commit: cf8281b1aeab93a03c87033a741075c39ace80d4