Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9850711rwr; Thu, 11 May 2023 23:31:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JyWafraW56TmULIRQgCfz+p0J3rDLmsPdN3ktWN5M3vlQXtGO1tAjMDbEv1JQkoZzGPaz X-Received: by 2002:a17:902:d48a:b0:1ac:8db3:d4e5 with SMTP id c10-20020a170902d48a00b001ac8db3d4e5mr16533714plg.69.1683873093013; Thu, 11 May 2023 23:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683873092; cv=none; d=google.com; s=arc-20160816; b=NAmVI3CAxbbGbFHz+Gff+IdI+Bip7RU4g9N5sy2QELbo43SJmndGWT6wIe61BMvJM3 Qgal+Q72PKB7qONND+VYCVe9CMMlQGVywtybyXqXROwNMe+Bp4vg0WzhVwf2kcmXk6Pg 2CUwWt9JH9jhYPZn1d1Kok9hxEHQWxs9LWMlLkkU3VxaxxHc4gYBWrU89gP85hJC9K10 MoDoM/dCExBgW+VMeML0qf9xUpNn4sG/KX+06JMhgifdvE5F5Wlqg/dAvRs0yZWE7YAT S3SWyfSJ09ngTLBCFwADub3iN72mZlVLyGfkpfXnkd95mW0k4lKCIMkJSK9PXrRLsLwB zBCw== 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=t/ckmPuAa4ujFgIFKMwM+2v/s58OS1qXxZvL0TqJDU4=; b=XqVGCNbHi258zyApKG86JaaH3KseCzda7Tojz14ip+OZox2nMiaa6lf+lrOKPNtyRU qZEx/S5ue94+zL5v5wpJZgcYdXLT2RhdD3vbtWmj39pwgHIv57AQBRXAUYXDp+86ciPj UaCriie6IA1FKmZvwNRQbilC7buQ7nBy67ZXtLLIFpAwm5U9hPuW5PKAMniUz/SQyTUL KuHQC0cH7SjIkavCJveRYbaBaOa69l2R9rMwWrf0WmH1eHUdR0pJt/xkIg8Lt3Dt+aAv pUo60fspCL8t09yp5y3Rsf0pcW9Lyif4PNbDkVt1FDSGYVYaK28ay3/sW0MIjz4YsFht 501Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHlhJFtE; 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 f3-20020a170902ce8300b001adc1c27d2bsi4439215plg.368.2023.05.11.23.31.18; Thu, 11 May 2023 23:31:32 -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=MHlhJFtE; 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 S239861AbjELG1P (ORCPT + 99 others); Fri, 12 May 2023 02:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbjELG1N (ORCPT ); Fri, 12 May 2023 02:27:13 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D0051BCA for ; Thu, 11 May 2023 23:27:12 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bc2feb320so14687413a12.3 for ; Thu, 11 May 2023 23:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683872830; x=1686464830; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=t/ckmPuAa4ujFgIFKMwM+2v/s58OS1qXxZvL0TqJDU4=; b=MHlhJFtEiJr+HM6PQUV+d9EhQAarkJRnrOnrct4NKLDL1DGQjpRa36VsvtQpclp6f5 NOBTtHgMLy6txOr+ng4mQrWTHyYQXgEmKWVBti0F29cDEgbZC6eqyIPcTroTVJJiTEx0 I6jRTBpklhuW1A7rS6AzYhqfuASSc7W8M1h1mceh4zJ6Zm2ikXo9EsJk7ju0YmSG0BCY plWmv6Qdr6QW/RLz0s0tvnZ4CY8oLDxlFUfzbqciaElId1wpw715yyPXTPenH58+gWtc HVr1QQ3KHXR/5IUCbdN/NlkfHAakDpWFIJ/RmKZaoN8ZWJDBcgrDIyo36kxD8yw0wdDU Ukcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683872830; x=1686464830; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t/ckmPuAa4ujFgIFKMwM+2v/s58OS1qXxZvL0TqJDU4=; b=HA7jfUrtV6dw+u/9SnrBNpEtZUxpGV3bwA7Z2+mK0xyeC8qCKzirKM4uuDtCXMLlLf 80d8SoGT1E9+FLX+iApG64C6w9yEOvxUBBwEDqQX37B2eOyik1L6GGuE7y/qSL+64GJA TqlGaHZxf5MxlPJZZuALMeduatN/mXyOYOlZl1aOqP3tulr1RyD+0DVCDHp7jMawhphO 0BvfxG5wVO5uqp8eOOUb6Vu4PISRVFlOo1khlUQUS8FYT+waPyW/aeSNCFZ1c38xghj+ tY6BWpMH9NjNT8OgFRzMmeG8pnmeN+UiF6pCf9Nb8knQqO4a3w+miIGAZiriFFpCZ8vl YHiQ== X-Gm-Message-State: AC+VfDw0Ueexpzi6HVBvOOFrWyueOIaWOuAf8Khqw8xbgqxHMNmU2kWn Ky9ujl4posUOrKtj2RbDJ1gCVw== X-Received: by 2002:aa7:cb86:0:b0:502:23a2:6739 with SMTP id r6-20020aa7cb86000000b0050223a26739mr16839436edt.28.1683872830598; Thu, 11 May 2023 23:27:10 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:7ede:fc7b:2328:3883? ([2a02:810d:15c0:828:7ede:fc7b:2328:3883]) by smtp.gmail.com with ESMTPSA id h8-20020aa7de08000000b005083bc605f9sm3621291edv.72.2023.05.11.23.27.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 May 2023 23:27:09 -0700 (PDT) Message-ID: Date: Fri, 12 May 2023 08:27:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next V3 1/3] dt-bindings: net: xilinx_axienet: Introduce dmaengine binding support Content-Language: en-US To: "Gaddam, Sarath Babu Naidu" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" Cc: "linux@armlinux.org.uk" , "Simek, Michal" , "Pandey, Radhey Shyam" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Sarangi, Anirudha" , "Katakam, Harini" , "git (AMD-Xilinx)" References: <20230510085031.1116327-1-sarath.babu.naidu.gaddam@amd.com> <20230510085031.1116327-2-sarath.babu.naidu.gaddam@amd.com> <95f61847-2ec3-a4e0-d277-5d68836f66cf@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 11/05/2023 13:32, Gaddam, Sarath Babu Naidu wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: Wednesday, May 10, 2023 3:39 PM >> To: Gaddam, Sarath Babu Naidu >> ; davem@davemloft.net; >> edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; >> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org >> Cc: linux@armlinux.org.uk; Simek, Michal ; >> Pandey, Radhey Shyam ; >> netdev@vger.kernel.org; devicetree@vger.kernel.org; linux-arm- >> kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Sarangi, >> Anirudha ; Katakam, Harini >> ; git (AMD-Xilinx) >> Subject: Re: [PATCH net-next V3 1/3] dt-bindings: net: xilinx_axienet: >> Introduce dmaengine binding support >> >> On 10/05/2023 10:50, Sarath Babu Naidu Gaddam wrote: >>> From: Radhey Shyam Pandey >>> >>> The axiethernet driver will use dmaengine framework to communicate >>> with dma controller IP instead of built-in dma programming sequence. >> >> Subject: drop second/last, redundant "bindings". The "dt-bindings" >> prefix is already stating that these are bindings. >> >> Actually also drop "dmaenging" as it is Linuxism. Focus on hardware, e.g. >> "Add DMA support". >> >>> >>> To request dma transmit and receive channels the axiethernet driver >>> uses generic dmas, dma-names properties. >>> >>> Also to support the backward compatibility, use "dmas" property to >>> identify as it should use dmaengine framework or legacy >>> driver(built-in dma programming). >>> >>> At this point it is recommended to use dmaengine framework but it's >>> optional. Once the solution is stable will make dmas as required >>> properties. >>> >>> Signed-off-by: Radhey Shyam Pandey >> >>> Signed-off-by: Sarath Babu Naidu Gaddam >>> >>> --- >>> These changes are on top of below txt to yaml conversion discussion >>> https://lore.kernel.org/all/20230308061223.1358637-1- >> sarath.babu.naidu >>> .gaddam@amd.com/#Z2e.:20230308061223.1358637-1- >> sarath.babu.naidu.gadda >>> m::40amd.com:1bindings:net:xlnx::2caxi-ethernet.yaml >>> >>> Changes in V3: >>> 1) Reverted reg and interrupts property to support backward >> compatibility. >>> 2) Moved dmas and dma-names properties from Required properties. >>> >>> Changes in V2: >>> - None. >>> --- >>> .../devicetree/bindings/net/xlnx,axi-ethernet.yaml | 12 >> ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git >>> a/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml >>> b/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml >>> index 80843c177029..9dfa1976e260 100644 >>> --- a/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml >>> +++ b/Documentation/devicetree/bindings/net/xlnx,axi-ethernet.yaml >>> @@ -122,6 +122,16 @@ properties: >>> modes, where "pcs-handle" should be used to point to the PCS/PMA >> PHY, >>> and "phy-handle" should point to an external PHY if exists. >>> >>> + dmas: >>> + items: >>> + - description: TX DMA Channel phandle and DMA request line >> number >>> + - description: RX DMA Channel phandle and DMA request line >>> + number >>> + >>> + dma-names: >>> + items: >>> + - const: tx_chan0 >> >> tx >> >>> + - const: rx_chan0 >> >> rx > > We want to support more channels in the future, currently we support > AXI DMA which has only one tx and rx channel. In future we want to > extend support for multichannel DMA (MCDMA) which has 16 TX and > 16 RX channels. To uniquely identify each channel, we are using chan > suffix. Depending on the usecase AXI ethernet driver can request any > combination of multichannel DMA channels. > > dma-names = tx_chan0, tx_chan1, rx_chan0, rx_chan1; > > will update the commit message with same. I expect the binding to be complete, otherwise you get comments like this. Add missing parts to the binding and resend. Best regards, Krzysztof