Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1589499iob; Fri, 29 Apr 2022 08:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJMbEMBxs2beU8fiBqsTN4NPj/gE/R7KBrr3IA0J0wbtBY2U+2+gGNFKRopRKtFN0np61J X-Received: by 2002:a2e:b5d9:0:b0:244:cbbe:89d5 with SMTP id g25-20020a2eb5d9000000b00244cbbe89d5mr24601146ljn.124.1651246178561; Fri, 29 Apr 2022 08:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651246178; cv=none; d=google.com; s=arc-20160816; b=JIeGuchZ5f5H+wQ6JpGpgHo2lJtuEYFjRb4OBmP2IZT8J8TELi50ANRNxA8rsRnQ5l f/QG0x2Vc3D7PoWyECHWoI6EKQM9R8iOjHUDCeizV/AyZY01Xv6Ref7RXZ2vKzPgU97b ZVhCv4sUMy2bbiE6i/FJ/OlTpvOmFcIHuZCNcL6U3+WFnGd2QGrMcCsXahow7YD6UF0b MWhl4/mivPBvmDV2ZoBzuAZgPDw8H4KXE0NAS509gl5z1pKl4jZTd528W3ys0OaFlBhd L0NWLuXns61ejekbO1P5KFb5d2D1rkVFaVegasMxdEttXxeDDg+nVEsS1ISfwvJ4LpMF y3AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JCaCl/ii5hJZDEi4S5k0LHa9uAnkQqqgZzG+NgNS+m4=; b=S/nGqyPpixT3a4lPysgHza/rs5PVO5XVgp+5LCkxhQm7N2dWcvIQGsoi41zlhS0gg6 mqGwu4v0QKgtGREa+XXpkTkhSbghY5tbhbFk4wMeBRzv1mX3skYeRIACruvk/GnMy+Df oLK7iJGf2hHR//hg7XsQctPdwkL9WK9amsCCf3Jr4YwQ8agRCEUYsqPnPloBRzvvOXAm 4tonSwW3rHC6lfzU+13d/SKVkB8BiD1iXSNub08OvYT+vbnXvZHXYVyhPvpfLjVP5UIy dR07orvFXVMchoHqezMlE+JIHnIqbqqMQ3X15O8Gzh+Kxfgg2HXD70U30zUqmVwINdnQ YLyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c5bZlPiQ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a0565123a9300b004722564661fsi7578022lfu.26.2022.04.29.08.29.11; Fri, 29 Apr 2022 08:29:38 -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=@linaro.org header.s=google header.b=c5bZlPiQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345193AbiD2Hdi (ORCPT + 99 others); Fri, 29 Apr 2022 03:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346464AbiD2Hdg (ORCPT ); Fri, 29 Apr 2022 03:33:36 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 532763884 for ; Fri, 29 Apr 2022 00:30:18 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id gh6so13874769ejb.0 for ; Fri, 29 Apr 2022 00:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=JCaCl/ii5hJZDEi4S5k0LHa9uAnkQqqgZzG+NgNS+m4=; b=c5bZlPiQMCkfzlKqVDm77gHjAT7wocnL/6GwcsuyROS0EUlmNVGKzzbQA5z6leD7Zi NIChzlAK3KitGUPrklro3Tzedt+6/2T0EMbAshQILAgoxwfY+wYgz7kpNtvkoyHZIdwL 3cavGwnLOBUzEQl4SS+2BXWfDqbCr6wLciJI7ZQ3iNy4gon86a4UPSfRvgsWJXyhmfbB Hnlifw9k0EgjYfUrpsNx4IJOYOzqHs0JGG06mpKSRGqD6c7v26j6QiLt7IzT31Lg4XR5 jox4PZC3lYozHefyKk1/0E6O7q8f5lRcdV69NMh1P5q1NbYGpLT8D+FYnqyXs2AR0XNB pJJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JCaCl/ii5hJZDEi4S5k0LHa9uAnkQqqgZzG+NgNS+m4=; b=0Kk4MgykWXMl2UOEsnf2oDhIdta5hFoAwLQqJGmV6txVJZNfmp757H9OrfoC0ZRrvM Q8fqD/RWqA26DRvQdf5MQO1fdminK8HCeJasMuboGMq83NDH0ISOeEdXQqZi2SC4L+WG dStgFNhjwIB6af+TXMnQe8JokpdH6+1Cy2DlkCA9yLsrG/ks4a2Yp1xHI4K7kBI1ecvz k0vuXpxrzhWSIMqsGC8M55xs/5LleDwPK2/2nxYbSgWUalFXO/jbM/vBmzxz6unm1k+C EzTIHofiFV2jxvuSxdWXesIFo47OyZ51GrWsPqgCZejnJsIbZjJch5cV6okD09xY7ZM7 PgTw== X-Gm-Message-State: AOAM5319I0Mwi8WGcSS+j5oR0UnzyVAvnhzpkNAc+7y37CIY1NV6ZFET OPXCBzcvZzNz1wZUUFMl2hr/nA== X-Received: by 2002:a17:907:7248:b0:6f3:6e33:cd8e with SMTP id ds8-20020a170907724800b006f36e33cd8emr29286201ejc.198.1651217416969; Fri, 29 Apr 2022 00:30:16 -0700 (PDT) Received: from [192.168.0.169] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id u5-20020a056402064500b0042617ba63a0sm2659283edx.42.2022.04.29.00.30.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Apr 2022 00:30:16 -0700 (PDT) Message-ID: <8439cce0-72c4-c029-6cef-1df67950393c@linaro.org> Date: Fri, 29 Apr 2022 09:30:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] NFC: Add error mapping for Directed Advertising DISCOVERY_TEAR_DOWN Content-Language: en-US To: Meng Tang , davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220429015640.32537-1-tangmeng@uniontech.com> From: Krzysztof Kozlowski In-Reply-To: <20220429015640.32537-1-tangmeng@uniontech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 29/04/2022 03:56, Meng Tang wrote: > When a DISCOVERY_TEAR_DOWN occurs. Since the operation is analogous > to conventional connection creation map this to the usual ENOLINK > error. > > Signed-off-by: Meng Tang > --- > net/nfc/nci/lib.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/net/nfc/nci/lib.c b/net/nfc/nci/lib.c > index 473323f8067b..873854c5d180 100644 > --- a/net/nfc/nci/lib.c > +++ b/net/nfc/nci/lib.c > @@ -57,6 +57,9 @@ int nci_to_errno(__u8 code) > case NCI_STATUS_NFCEE_INTERFACE_ACTIVATION_FAILED: > return -ECONNREFUSED; > > + case NCI_STATUS_DISCOVERY_TEAR_DOWN: This define is not used. At least I could not find it, so maybe instead it should be entirely dropped. Best regards, Krzysztof