Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1040461pxb; Wed, 6 Apr 2022 07:19:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4pQLGelhMWuoE/hRHEFycdBwJp5egBVgAbhohayllddFlG1aaoeNfbAA9vBOTzRf0/06Y X-Received: by 2002:a17:902:7c94:b0:14d:77d2:a72e with SMTP id y20-20020a1709027c9400b0014d77d2a72emr8984176pll.153.1649254764073; Wed, 06 Apr 2022 07:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649254764; cv=none; d=google.com; s=arc-20160816; b=B94q7AeXSLPm8HbD4FOk44g2lk7JpjtPuQAvZ1nBFFM8fRScQAtQjKxqQukzJajCmc gqXNg5Y68ZrGumVfr9HXuWPZSeb0tzJ1nFUbxtmXQ6RCIlzaf/1kv55eB5rTMWAWXp85 YaoMFbKrRMNyEIJP3iqfWFIR9NKlm+bUj/LicP9+z2gSf3PbqAw51GcaigA1clRYgCv/ lXyeRjLo9PFB+APkjAJoOKx3P6ibdPViL35oxOl2r00asdLWA2hXhK6Uajteq+hMDMBB LgUWEg0e++LA1MBVCrk+nnAGy1b87dYtWtfvcuZOyu8fvuDqDFJU+xYrCFcnTIn6/ZgS kvnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Idh8/5uKfvmzqCP/mbKS5vmWYLuGXJDjAAgKk/V1xv4=; b=FxIcSzftSZ/29kNaI24Uyx/SUoG0CMVLjiXig6izibUA/9P3nTg3Q+yYvJvdRugMIQ my8v4QCrnRE5it8UfaTf+NqV4cS2rmNHFg5dbDbyr7WjVni5RnuhAT7VQPHNFyhzKMNt +KZWuGiE+Uer/fi9Zk22N/UA9tpmqqWFnrOcjI6cYllWYzzRjFM/3nRSZMWH+BbnIxGo OWAtbEuRrGdVqAcVE8Mu70jm8GYM95KWGFHe/DoUrEYr3zaUGU8b2+y+JTIq5zLvNjZO hhQVlhjAnyIZQdZv1MqC0YOGhYcJjS5T1EASlmc2gv4Rm6DPc52wozMC/ZO0APQLJ2K/ UGaA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k135-20020a636f8d000000b0038633e6a886si16267449pgc.513.2022.04.06.07.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EEB8B35FCC9; Wed, 6 Apr 2022 05:05:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbiDFLng (ORCPT + 99 others); Wed, 6 Apr 2022 07:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbiDFLnT (ORCPT ); Wed, 6 Apr 2022 07:43:19 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83135826C2; Wed, 6 Apr 2022 01:29:36 -0700 (PDT) Received: from mail-wr1-f42.google.com ([209.85.221.42]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MUGmJ-1nTSAf49gp-00RGcd; Wed, 06 Apr 2022 10:29:35 +0200 Received: by mail-wr1-f42.google.com with SMTP id z1so2052634wrg.4; Wed, 06 Apr 2022 01:29:34 -0700 (PDT) X-Gm-Message-State: AOAM531OqtwpTUOg/EVfV2+UmJYA0dXu/AnjpJjfw+EM4q16jICsyIML tf37VFHTca6RTkr9lTjXbOaswI6c/kFG7cPnJtk= X-Received: by 2002:a05:6000:178c:b0:204:648:b4c4 with SMTP id e12-20020a056000178c00b002040648b4c4mr5517385wrg.219.1649233774585; Wed, 06 Apr 2022 01:29:34 -0700 (PDT) MIME-Version: 1.0 References: <20220405195755.10817-1-nbd@nbd.name> <20220405195755.10817-5-nbd@nbd.name> In-Reply-To: From: Arnd Bergmann Date: Wed, 6 Apr 2022 10:29:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 04/14] dt-bindings: arm: mediatek: document WED binding for MT7622 To: Felix Fietkau Cc: Krzysztof Kozlowski , Networking , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi , DTML , Linux ARM , "moderated list:ARM/Mediatek SoC..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:LqaHr6zQfU63/KWC6IeHSigHnsL9BIJjTNGAo+pOtFMNqkYgWK+ qUDoplE/Sw83CfpzQULwxHJ1W39zwgAd79ykAa/+fe0ExWXw7ftfen8XLjT7gYwvaNy4BPA 3KuKZG3aMpEW6CuAyECDaQAnlIA+VuavkpT64DltnENZgd+kr2pa6LnNklCAdqE7hudEIjS A9GRnXOMY6UbCs4JsAz6A== X-UI-Out-Filterresults: notjunk:1;V03:K0:BzheXsG6FwM=:lg/g4Wyl4/RF5LqxEvpfvk KKYJWvaS+wvWRZtVArZ/ClXOWia8PVjNVm9si85mcWYixRVc/aRdfzIMpy+tUiYinSaKfjG4+ hdrDYGeExr9bn1ct26akXZ+DDFtFII4AFZ4m0njrWitiNEwUTV33lDXAaR2FjqOhJnUCbHL2g E4E1g/pIi7dF2QUrpUCUUM5Zgco7yTrqoC1Y7NNIWrZjNfRuvR/5zM8mBfRxd+rn+8z9FxDxj M934Rd0egAkdXZjNk0EyjvFvgsYVVPG0k1zDuvJ5eXxpWsGUX6uF2abfyRswd161OkVCEXCZA QSSEuW/5VAdAOQbyyFkCWQ3oZAzUnerlmSjukdDCbnxQjkOd7ZisOS1ocdvQKMnExWZ+D0rmk xdHggtD8TWKFmZDo5UE9hN+slc8mM+2IxIhDdRzsLZjRxSdF11zRfMvoeSuumj9Gpp/il2q3U xD/XngG83S1iCDLrV8LkcUt/YQA8OR4CckWCQ13gR3cP5EapDHPKIFmZAdUh1MeGG727aK0iC x0Nbwh/avUzfvZFDgI+JQfJ1vWMBCHx686wpb9h7Hms9hUmmf0vEXm2eyt84f5t1q4ftX2P+P YGs8tilrlLW2N0ibBxnYY2If4knWoFDohzhE7BG7K2yWgKQ/o7p7HyJ0ZEN8hIGfvnHmF/1CZ KK+Dzkf6eBd8zqCK7cpXK4f6iFHU6gaVPL6DBGp7TMXhnZMBCPbP4CprSftVytQ/xvKSFFtQI +OVn74Rm2A+faAFh6VQPFV9bFKFak2GydaBuQmSJCCsI0PiW9QxWZcL5XQf86yMLxRFRxEgpt cAZ47H5qjCXwXhea4f5I4x5ux1RwZ25ZVpwMz+HbsdsDiEHVG4= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 On Wed, Apr 6, 2022 at 10:18 AM Felix Fietkau wrote: > On 06.04.22 10:09, Krzysztof Kozlowski wrote: > > On 05/04/2022 21:57, Felix Fietkau wrote: > >> From: Lorenzo Bianconi > >> > >> Document the binding for the Wireless Ethernet Dispatch core on the MT7622 > >> SoC, which is used for Ethernet->WLAN offloading > >> Add related info in mediatek-net bindings. > >> > >> Signed-off-by: Lorenzo Bianconi > >> Signed-off-by: Felix Fietkau > > > > Thank you for your patch. There is something to discuss/improve. > > > >> --- > >> .../arm/mediatek/mediatek,mt7622-wed.yaml | 50 +++++++++++++++++++ > >> .../devicetree/bindings/net/mediatek-net.txt | 2 + > >> 2 files changed, 52 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml > > > > Don't store drivers in arm directory. See: > > https://lore.kernel.org/linux-devicetree/YkJa1oLSEP8R4U6y@robh.at.kernel.org/ > > > > Isn't this a network offload engine? If yes, then probably it should be > > in "net/". > It's not a network offload engine by itself. It's a SoC component that > connects to the offload engine and controls a MTK PCIe WLAN device, > intercepting interrupts and DMA rings in order to be able to inject > packets coming in from the offload engine. > Do you think it still belongs in net, or maybe in soc instead? I think it belongs into drivers/net/. Presumably this has some kind of user interface to configure which packets are forwarded? I would not want to maintain that in a SoC driver as this clearly needs to communicate with both of the normal network devices in some form. Arnd