Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4841005iob; Mon, 9 May 2022 02:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj8MqPogArI5P9+9OKGVW3+6wZxk8glanCWfMydR1mUX+GO8o5HJGF3eGbzyuU746Lwp0K X-Received: by 2002:a17:903:32c9:b0:15e:c1cc:2409 with SMTP id i9-20020a17090332c900b0015ec1cc2409mr15770396plr.2.1652090181788; Mon, 09 May 2022 02:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652090181; cv=none; d=google.com; s=arc-20160816; b=BJaBZdaCeEfQYlgTh7v4gPFVFiWRvhZX+Tp5uMD34Hzuhvp/DWbGQJ3qyoaaM2zShI wl3ZfYFgjXI+t7nvYN6iaa6atYeu2okBEl1q3nxHELpOhBcg7MMNVx7PwXPKEQBotRoJ 9fbHv8Cm3EwTXtXpfrTi6RwgdPOGl6RPQ/jaz+fsbsRS4+c+Z3gmsURz6aWLhNj13qWR BU7z8B5fnczzjgIfQd5BYV/o5hEVIR2SssJeTIyk55GNd5JA4U/RV/giLgEwNFN/Zn0f 6Fu1AwczodEHnyQJm2VgYI8aEmLVKScmOfFf4R0cbRX3gZzkd1LhPqy3TJ9WI3H4Hp2u 97GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=ZdBtiu/aZFbeFISpCx1tqC40sAErOadJbWwv3kqmvLI=; b=TZUq/Fbe9zXgoK/XyfAn7g0cgchzEHR7YBApWZDPJYjF013JDNLOCH2kPk9tl2hgM6 q7aOva0IDpDPVmpH1xgzri7tWjXzvRy2vYViyqMwb/KE+q4LUaUCkiiuf8xXtQ+Mh0Hn zmbaXDZKZqR16fMfb40Vc5o7pWoybgNruV1RcK6+qAI3zMViaA+/nTgmMrJ5ZaabLizn 0F3VSV8NJnpiXgp450OqK6P/HQ8VH9Czit3jpIqOYIr1aRbVpw6vyFNKsSMqSZtDghIL cHKoCQWvzIu0CrvOzSHOJ+2x2iZcPSuu6CB+KWatWMYDWZeWDbnrQiTD0rUPaOil2sW1 IV/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dp3haL9E; 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 p11-20020a63740b000000b003ab92744f7fsi14850892pgc.405.2022.05.09.02.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:56:21 -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=@gmx.net header.s=badeba3b8450 header.b=dp3haL9E; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 341551E3EC1; Mon, 9 May 2022 02:39:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232692AbiEHMQ6 (ORCPT + 99 others); Sun, 8 May 2022 08:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbiEHMQx (ORCPT ); Sun, 8 May 2022 08:16:53 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A313AE0E9; Sun, 8 May 2022 05:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1652011928; bh=urf/6grh3HJinL6V+chc5QjAaSNuRTaSFnBMrsEERZQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=dp3haL9EMAb+d40ThGLw2NcWomb7pYltQytDtNfkzAZ5gbjPBwiMDhhB4553s+/q0 Pxh1T0BrletMfoS6DkhrAbGjRG4PG0gsNFQWX7e5yKIwBy618RmnHkIIlK0h1I4HcI H85tzNqlGG9U35ba2U7mUc0CTXvpFE96DppUj+wg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.158.76] ([217.61.158.76]) by web-mail.gmx.net (3c-app-gmx-bap68.server.lan [172.19.172.68]) (via HTTP); Sun, 8 May 2022 14:12:08 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, Krzysztof Kozlowski , Frank Wunderlich , linux-mediatek@lists.infradead.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Landen Chao , DENG Qingfang , Peter Geis , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Ungerer , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , Mauro Carvalho Chehab Subject: Aw: Re: [PATCH v3 5/6] dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531 Content-Type: text/plain; charset=UTF-8 Date: Sun, 8 May 2022 14:12:08 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <2509116.Lt9SDvczpP@phil> References: <20220507170440.64005-1-linux@fw-web.de> <06157623-4b9c-6f26-e963-432c75cfc9e5@linaro.org> <2509116.Lt9S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cQlU vST0akrfSHJYXuZwP1YJoC25O+/6mSWBhtfyyzDO55reVS3f1ojxNGEhm7+W8hQgyq5nGJa9W lT8FIVab+rrge0tW0xSpkVXBLFFiI1lo0YLKzu/jhjzzMSCQKKlUo5AKOn89KsW1W4q7cCnVx igaLZ1o Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Hi Heiko > Gesendet: Sonntag, 08. Mai 2022 um 11:41 Uhr > Von: "Heiko Stuebner" > Am Sonntag, 8. Mai 2022, 08:24:37 CEST schrieb Frank Wunderlich: > > Am 7. Mai 2022 22:01:22 MESZ schrieb Krzysztof Kozlowski : > > >On 07/05/2022 19:04, Frank Wunderlich wrote: > > >> From: Frank Wunderlich > > >> > > >> Make reset optional as driver already supports it, > > > > > >I do not see the connection between hardware needing or not needing a > > >reset GPIO and a driver supporting it or not... What does it mean? > > > > My board has a shared gpio-reset between gmac and switch, so both will= resetted if it > > is asserted. Currently it is set to the gmac and is aquired exclusive.= Adding it to switch results in 2 problems: > > > > - due to exclusive and already mapped to gmac, switch driver exits as = it cannot get the reset-gpio again. > > - if i drop the reset from gmac and add to switch, it resets the gmac = and this takes too long for switch > > to get up. Of course i can increase the wait time after reset,but drop= ping reset here was the easier way. > > > > Using reset only on gmac side brings the switch up. > > I think the issue is more for the description itself. > > Devicetree is only meant to describe the hardware and does in general do= n't > care how any firmware (Linux-kernel, *BSD, etc) handles it. So going wit= h > "the kernel does it this way" is not a valid reason for a binding change= ;-) . > > Instead in general want to reason that there are boards without this res= et > facility and thus make it optional for those. if only the wording is the problem i try to rephrase it from hardware PoV. maybe something like this? https://github.com/frank-w/BPI-R2-4.14/commits/5.18-mt7531-mainline2/Docum= entation/devicetree/bindings/net/dsa/mediatek%2Cmt7530.yaml Another way is maybe increasing the delay after the reset (to give more ti= me all come up again), but imho it is no good idea resetting the gmac/mdio-bus fr= om the child device. have not looked into the gmac driver if this always does the initial rese= t to have a "clean state". In this initial reset the switch will be resetted to= o and does not need an additional one which needs the gmac/mdio initializati= on to be done again. > > >> allow port 5 as > > >> cpu-port > > > > > >How do you allow it here? > > > > Argh, seems i accidentally removed this part and have not recognized w= hile checking :( > > > > It should only change description of reg for ports to: > > > > "Port address described must be 5 or 6 for CPU port and from 0 to 5 fo= r user ports." noticed that the target-phase is not removed but squashed in the first bin= dings-patch. This was a rebasing error and not intented...will fix in next version. regards Frank