Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1421933rwo; Wed, 2 Aug 2023 13:56:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8bhxnomIZ5eVVyZuYLRQ4AbHJU97gDuleBF23AG1X1vrAiT+Hr1XupFLk9+m2LsSAJJsq X-Received: by 2002:a5d:58c8:0:b0:313:e553:b858 with SMTP id o8-20020a5d58c8000000b00313e553b858mr5667682wrf.33.1691009815750; Wed, 02 Aug 2023 13:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691009815; cv=none; d=google.com; s=arc-20160816; b=y4lm3/4MRewtwa9I/Q/uXEgYI+iZDacHycDiMtVIFBl7AQKrEV5Ya2Zr6H5cgPicCG NvG4LsFkAXnxxAtCZBjzEkvpDEUsTAWbRuPIq/tjiazfgD+3Tm9fi+uZEyKvfUcf5DRE fqbKTWjS6ADq65GmfAr4cHgDsjtXU7Q5TUcg+ZFFsh+EE7HN5iQxvONr5Nujw9+Ko9hA WYBCKAtXTlHwpgFeLiPW3D9/74mLYR1QtGcHhorY8O3T5ywdZA5179/fwL/Z5ngMzAbR so9QPaSEasNozhGA5od+rxBPmQ2ulCWRdkyoyl+6KRDdT+n9yK1d0il8Ox1PP89Io/kB oJRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RBc8qVVYG78ingef0pACFOd2VQs16xx+04LQfyEW9KQ=; fh=6Zlj7bTvqgiln1m/Fgyg4N6t7Beo39G1la3tjkPpRlc=; b=1ImyTPI9xKVLpB/MsIC+gPT/r/SeZ0qpKuFZ+kTZixAPMw0kq1iKIbZOGLYkJ9o+r6 SK7HQYi5firrMSfyVVfUKgjEo8x9svCHo1UJJ7ynvdg2X2hHeVaprxnKnujodGFp2GM8 YzB9aEfi9aOr7lUhD3NFNZq94sGQRQTExoht3jMlISsBaBFBAgCmSUe/F30qpAIhJlUP vZbmeFWIAtI7TX8EsTMScoYlaGPuK8TPe+78owC4NG8TWr5LJKYI2XZ2HTGk/lX6QpNK zdDw1G0BegNYFm576hXrWR6fstVqmJwUkrpcOI1l/E/RtWF82v/R6GdFRBkWKWtEy5vL fgFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020aa7cd12000000b0052307b1292esi730419edw.346.2023.08.02.13.56.30; Wed, 02 Aug 2023 13:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232445AbjHBUtJ (ORCPT + 99 others); Wed, 2 Aug 2023 16:49:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjHBUtH (ORCPT ); Wed, 2 Aug 2023 16:49:07 -0400 X-Greylist: delayed 1794 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 02 Aug 2023 13:49:03 PDT Received: from 7.mo583.mail-out.ovh.net (7.mo583.mail-out.ovh.net [178.32.124.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3221FF2 for ; Wed, 2 Aug 2023 13:49:02 -0700 (PDT) Received: from director7.ghost.mail-out.ovh.net (unknown [10.108.1.240]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 8C395267DF for ; Wed, 2 Aug 2023 20:10:56 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-6cqtb (unknown [10.110.115.108]) by director7.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 5B7181FE0E; Wed, 2 Aug 2023 20:10:55 +0000 (UTC) Received: from etezian.org ([37.59.142.110]) by ghost-submission-6684bf9d7b-6cqtb with ESMTPSA id 90vKEk+4ymQGJQAAgyrAAA (envelope-from ); Wed, 02 Aug 2023 20:10:55 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-110S0042ae43894-5d53-42a1-98e0-905b92e0f2bc, 0C641BB37B7CC30D107EA61C426C60CA54BC1A77) smtp.auth=andi@etezian.org X-OVh-ClientIp: 178.238.172.51 From: Andi Shyti To: aisheng.dong@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, carlos.song@nxp.com Cc: Andi Shyti , xiaoning.wang@nxp.com, haibo.chen@nxp.com, linux-imx@nxp.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] i2c: imx-lpi2c: directly return ISR when detect a NACK Date: Wed, 2 Aug 2023 22:10:31 +0200 Message-Id: <169100562766.1919254.12222013232053766298.b4-ty@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230727030347.3552992-1-carlos.song@nxp.com> References: <20230727030347.3552992-1-carlos.song@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 13281115305390246619 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrkedtgdehtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeetnhguihcuufhhhihtihcuoegrnhguihdrshhhhihtiheskhgvrhhnvghlrdhorhhgqeenucggtffrrghtthgvrhhnpeevveeiffeifefgfeduvdetleffuefhleffjeetjeduvdevkeevhedvjeegfeetveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduvdejrddtrddtrddupddujeekrddvfeekrddujedvrdehuddpfeejrdehledrudegvddruddutdenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoegrnhguihesvghtvgiiihgrnhdrohhrgheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehkeefpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Thu, 27 Jul 2023 11:03:47 +0800, carlos.song@nxp.com wrote: > A NACK flag in ISR means i2c bus error. In such condition, > there is no need to do read/write operation. > > In this patch, i2c will check MSR_NDF, MSR_RDF and MSR_TDF > flag in turn, it's making mutually exclusive NACK/read/write. > So when a NACK is received(MSR_NDF), i2c will return ISR > directly and then stop i2c transfer. > > [...] Applied to i2c/andi-for-next on https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git Please note that this patch may still undergo further evaluation and the final decision will be made in collaboration with Wolfram. Thank you, Andi Patches applied =============== [1/1] i2c: imx-lpi2c: directly return ISR when detect a NACK commit: 7525bcc34ec49a39e8b56f5911431a5a2a981896