Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2336986iog; Sun, 26 Jun 2022 13:02:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubHjiVnNVMcOcj7wIJ5Wqyy/gqCfeRRFNzLTzEQJA0ZHIHTDkAFa/tt7g3+28juowBHvfI X-Received: by 2002:a17:906:39d1:b0:6fa:8e62:c8a2 with SMTP id i17-20020a17090639d100b006fa8e62c8a2mr9396557eje.487.1656273728831; Sun, 26 Jun 2022 13:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656273728; cv=none; d=google.com; s=arc-20160816; b=X8N9qn5KEvkwZwxQyON7SxF15tDu9DuIgbQIKrRcpUrx1lttrdR2gkFH0IsF3Ns+Sv oHGJVcDKMwawPgDYXOieOk3t2Chz4afTEvKQt3Vy9wcXaQqLYvzzuUlsulhsJ8qGQrkx vbxxpnGilWke+Lekt3yuUGNdlx0LBasBy6XB2JGusVSFwsm8bg8sknXTF+mQcIHkZJbG FucwXV++ANdKv684LKHDmuRxDc+G4DuG3+6sZfSPkkLiWVj2ZqU/1/89Wy8IL2+v/WDW PugnNFqMf/4briPuBlhp3qA0oJSgjGFEC0/YJxJqRQQQ3ytWdO+boceuzW6jrCAPSe9z BAxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=t+Ydlg0tw+uRCOZCn7JbEkD96fE79JZR4UjZLAXo72U=; b=b0yCyaPJHH5lIC6daiAwZJpzWHeFLLcJqVqoSB3Z4+OxDKOV0zD+awPVnhsyQtP9yX sfyRYcfr5w6H3p6IDS0d8V6MQkAXb44l/Uk0znyPSH2pLv8D0P4sKI4qg//0iWh1YtZQ oE/lFhyvae1y+x9URmpJYLpYFll7gArpldv0rbflmWHOyigwgXrY4qYx2kJM3nxAvFq2 BQE1XeIuxpgT3QoFEwM2JG2zIBODpKokh5I+oiVRT0+qCrgmKW1Uhh+WmCD9omygZIgZ l6vz32Iespk+qz2Sb4maKeHy/b1elB+tfVqLWA49+vE9em/+9QpGvdUmYK/1tM1K7nZa p00A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="C/4btszp"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv18-20020a17090760d200b007115ac2292dsi10847636ejc.335.2022.06.26.13.01.44; Sun, 26 Jun 2022 13:02:08 -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; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="C/4btszp"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231934AbiFZT4w (ORCPT + 99 others); Sun, 26 Jun 2022 15:56:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231314AbiFZT4u (ORCPT ); Sun, 26 Jun 2022 15:56:50 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EEFF558B; Sun, 26 Jun 2022 12:56:50 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 3B0D12222E; Sun, 26 Jun 2022 21:56:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1656273408; 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=t+Ydlg0tw+uRCOZCn7JbEkD96fE79JZR4UjZLAXo72U=; b=C/4btszpoGCu/vS+3u4XvTMqi7Oju7XCGlbKvDUSyUFpw/7woBjd8GtluiUF+EN7G+4zwV 1NlSMfrpnN5PQBkyLEMso3pyHIG4sYjwCH8OGqVYEQ5kgzqLSdsmNTk3nDiqJ2ABXN6NmF rxGTqpASZywWudZj3kJYZknMH9QDLTw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 26 Jun 2022 21:56:48 +0200 From: Michael Walle To: Krzysztof Kozlowski Cc: Charles Gorand , =?UTF-8?Q?Cl=C3=A9ment_?= =?UTF-8?Q?Perrochaud?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] NFC: nxp-nci: Don't issue a zero length i2c_master_read() In-Reply-To: <3c28bc43-4994-8e12-25f4-32b723e6e7ac@linaro.org> References: <20220626194243.4059870-1-michael@walle.cc> <20220626194243.4059870-2-michael@walle.cc> <3c28bc43-4994-8e12-25f4-32b723e6e7ac@linaro.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Am 2022-06-26 21:51, schrieb Krzysztof Kozlowski: > On 26/06/2022 21:42, Michael Walle wrote: >> There are packets which doesn't have a payload. In that case, the >> second >> i2c_master_read() will have a zero length. But because the NFC >> controller doesn't have any data left, it will NACK the I2C read and >> -ENXIO will be returned. In case there is no payload, just skip the >> second i2c master read. >> >> Fixes: 6be88670fc59 ("NFC: nxp-nci_i2c: Add I2C support to NXP NCI >> driver") >> Signed-off-by: Michael Walle > > Reviewed-by: Krzysztof Kozlowski Thanks, I'll reorder the patches in the next version otherwise there will likely be a conflict. That should work with any patch tools (i.e. b4), shouldn't it? -michael