Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1073701pxb; Wed, 6 Apr 2022 08:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuH6/9j/5ZyUVVmN1RT26rmMbRROAljrTVjd5G4wqmbVf4o7ECgFgJXfJ5CFSVFzwUqVF3 X-Received: by 2002:a17:902:a618:b0:156:956f:69e9 with SMTP id u24-20020a170902a61800b00156956f69e9mr9333786plq.127.1649257608692; Wed, 06 Apr 2022 08:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649257608; cv=none; d=google.com; s=arc-20160816; b=T7/NqYvhCiBBOv8FCD5i/Jv4HMFyibHPte8Vjjl36Z35Oi42jEvrBgObDh3c3ImMLg xOg8J6nu8iWohQ66FPnmsUnLEGJqcS7TG8pVGYa8wwxsI3i15fvBHsZ58qiLjmsxmW7U Ih37GsfkH5z9rU2oUtVeSGOhw/gqCU0XJIr6pxUneSJkejx2G5u6cPkZXyf1yI8uwo0V u6pK0hUilTF2RSmGxwZEAsutvMVBPCfvqGYsTC98wnfKfbjx+nOnuEf1vtr7cvpm6wBm dFBwaaW0bcewdW0+GhvhU+y5cyiugpH0vZ8x9M/t9DIBItkSKVKletP6GxhK/nKJmUo2 UeSg== 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=7oGdqe4edvqr+iYfJInFHVmb7+U6NUbqblozp3XrpQg=; b=tDBph9XZSySBgsnYgmrS3LCSZXbyMn6AgEJpzMIlTHK77LF/s+5SkiLsckQGJQg5wx Jn2WO00AqfgmJ0BWveZxxD8aMT/KHfV7Pmtf0ZVYx8FtXrKrY5Zmg4yT6QeWaGvdmnUZ JwdUFlYOxy6nbuu+rmE3ZfihiQ/k0IBWB/r040y8eU79a/ZiiTrFaxpxHjakNuv103KE XCTfVd52ER/Jlrlg4kvgy5JccAxQn3Lvn4XVrCgBP/kq1oNQWOPTLJ66kJtx5GYuIhQe gm1vZDFBP3/GLcJddNBLwrVMri6f8G8jTq1vNzex6wlX2B/OnoPGqqZCtJH99F9KWB5j iQ1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i+U889ub; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v21-20020a634655000000b003816043f178si15876770pgk.877.2022.04.06.08.06.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:06:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=i+U889ub; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51A7F2AC29F; Wed, 6 Apr 2022 05:54:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbiDFM4H (ORCPT + 99 others); Wed, 6 Apr 2022 08:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231405AbiDFMzv (ORCPT ); Wed, 6 Apr 2022 08:55:51 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 430AF2F6536 for ; Wed, 6 Apr 2022 01:57:24 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id n6so2758797ejc.13 for ; Wed, 06 Apr 2022 01:57:24 -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=7oGdqe4edvqr+iYfJInFHVmb7+U6NUbqblozp3XrpQg=; b=i+U889ubHp/vqD39N9mGHzSBxDkleyQwz/NKD0dqRtQCXOhQn3Be6msm33/4hP8WDQ z//23cjvUb+fkkceiSyT7T08AqIo5FDX3UurpydepsVA13l5Tghgh949AbE1vo/0vpMS MunVwbnQlqlray9rykp3K4cZu09MwZYvYgxR7ZLSaXY0RdRxmlrb94cBBclWn8AZLD+I GklRqWwbXTQebvLfyShnONpxJdDb4dEZplwAwS55peWNy77EAcMiCpeHmX5qK+U30fnQ MkpxHFM8PcP5yg0wFjXJWB4ONKi+TXcIZ6EE3CVbb9yyWs+LFbKmQMKadXfJWkgtGIiH 2QNQ== 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=7oGdqe4edvqr+iYfJInFHVmb7+U6NUbqblozp3XrpQg=; b=Tu+4Phm6qUaJgsyzOlE1ECRoL1Z+GMkPMPKNU0mPLqMzKh2NPnR7mxQLskSzcjW4Rn lQ2DqYaCSWbCCYfVzLcEdrCbYcmamgJjce2/g1gTGwCLOQcDHjr9M8jnvSzDBHy3IqB1 x/O0r/WSMbiHguVGVWXO4iw+Tul1NSsFoeZEcee5GdMVSfYdSJcNn0oOKsy8wPdpEwe4 4f8cpioNmIm5LxDnjcSfQ72d8+xSczTZ2GW/DKokAC/KAXqeb5B8UhZ26SyhrkeXGNx9 30moYG5cWr6ujoe0l8ugo1YGVNvtuLHEIFn3MPmbeadppjOZYe+mLv0GIvTt8WZ7pBgP 7OAQ== X-Gm-Message-State: AOAM532BjYx2Wc1bFUXYzxIkr1mF50U5in59G4MV5ap14yBzCI21uL2H Usjgt4myv5yO/jTofE1fUQykIA== X-Received: by 2002:a17:906:698a:b0:6ce:b983:babf with SMTP id i10-20020a170906698a00b006ceb983babfmr7573228ejr.553.1649235442532; Wed, 06 Apr 2022 01:57:22 -0700 (PDT) Received: from [192.168.0.183] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id c4-20020a170906340400b006d077e850b5sm6331152ejb.23.2022.04.06.01.57.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 01:57:22 -0700 (PDT) Message-ID: <750c1f9e-6a53-16d5-390e-f9f81fa23afd@linaro.org> Date: Wed, 6 Apr 2022 10:57:21 +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 v2 04/14] dt-bindings: arm: mediatek: document WED binding for MT7622 Content-Language: en-US To: Felix Fietkau , Arnd Bergmann Cc: 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 References: <20220405195755.10817-1-nbd@nbd.name> <20220405195755.10817-5-nbd@nbd.name> <08883cf4-27b9-30bf-bd27-9391b763417c@nbd.name> From: Krzysztof Kozlowski In-Reply-To: <08883cf4-27b9-30bf-bd27-9391b763417c@nbd.name> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 06/04/2022 10:32, Felix Fietkau wrote: > On 06.04.22 10:29, Arnd Bergmann wrote: >> 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. > The WLAN driver attaches to WED in order to deal with the intercepted > DMA rings, but other than that, WED itself has no user > configuration. Offload is controlled by the PPE code in the ethernet > driver (which is already upstream), and WED simply provides a > destination port for PPE, which allows packets to flow to the > wireless device. Thanks for clarification. I still wonder about the missing drivers as I responded to your second bindings: https://lore.kernel.org/all/20220405195755.10817-1-nbd@nbd.name/T/#m6d108c644f0c05cd12c05e56abe2ef75760c6cef Both of these compatibles - WED and PCIe - are not actually used. Now everything is done inside your Ethernet driver which pokes WED and PCIe-mirror address space via regmap/syscon. Separate bindings might have sense if WED/PCIe mirror were ever converted to real drivers. Best regards, Krzysztof