Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3757316lfb; Mon, 9 May 2022 03:26:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRZvwyDiYI56zmgwe1onPr/NzNgldFOktNyU6p/gA1Z4hOWL6yld1HmmVjpdCvW2MgZs4S X-Received: by 2002:a17:90a:5b09:b0:1cd:b3d3:a3f3 with SMTP id o9-20020a17090a5b0900b001cdb3d3a3f3mr17872712pji.9.1652091985037; Mon, 09 May 2022 03:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652091985; cv=none; d=google.com; s=arc-20160816; b=OxCRWac3RnJGTfoFPWRVMiNwZ6yvJWAMT/9TyM6lPiyT8AkgxcisA3gTAwp+uLI8nB //8vFa2sh6igd56rlYyemKE3puOxIL0Qvqx2XdBfF0kzwYp+iB8Gtgolsiohq5AgOeho I0xlG6+KYxb+LBaavxjlNQBG78m0qPBPev9rOWGrb2qnCO/sxnsXvvJ2D9T+h9iOJS5L R0fIOrEoJwA5nsWeDs+96abLKlVJGJcb3NewJi7bOkjEPDBWX2FnRkXvpQth4NagVrkX GrSzCg1b6pyocV+4K/hDIQHSZQCxbClU0YqA72THTtpU+zOEO+0WZqPpT66GxlqdviSz 6bKw== 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=Q1uIYNMhCGy4rHwwDKHArD0ERJS+cdwEigc/mkUrZDE=; b=LW+S6yO3QeAU5TdlLUyYlGytvfD90cp5fsEIBW8kTtEZyASZ929GsPYfv9lEXk4ie+ Mo8IK/FU4VJKxvVkXzXFXpJiRxOuLftbPeg2c9YtBWFAWhqI+obL05W2BwocLMjm0bup eZx9FkrDfdhvK58j4q/N4epX6tdF1douq13U1fQi29Oa/c+f3w1pz73KePeT+Ugs38Re Ux0a5Wm3Dd/dRdq1yK/OMsHC/AtwRm5Yn1RNU1VDvJrFcq4LW4yH2HOxyhSBVGyXoPLv /7lyOubASAwIgbLO56EN4huHKpWU+9abFOOmMbQTNz7QaUE++/is9yNyNPyENYEifBKm ugew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mb0zfiXO; 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 h11-20020a170902b94b00b00156893e1c70si10438509pls.260.2022.05.09.03.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:26:25 -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=Mb0zfiXO; 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 0998E1A4914; Mon, 9 May 2022 03:00:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235609AbiEIHFx (ORCPT + 99 others); Mon, 9 May 2022 03:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231962AbiEIGxC (ORCPT ); Mon, 9 May 2022 02:53:02 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0B6719877D for ; Sun, 8 May 2022 23:49:09 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id g6so24882755ejw.1 for ; Sun, 08 May 2022 23:49:09 -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=Q1uIYNMhCGy4rHwwDKHArD0ERJS+cdwEigc/mkUrZDE=; b=Mb0zfiXOc10IiOZfJPPokzGs7XcA/7jpw/OIqiOD+eKHEEsR1Q8LBthkF/q+eCNL29 CNGF1orY/xbxnus7pNzHJc2rJ4hOzmuJys+rDQCMyCEucN8qhlKgNcvURUdntg2LzHu7 7E7lQyEi2FDEMzsqYFb2X+SLS1EAc6JlpK5VkFRL+zO5uZKLmlpNioK4Fj60HzsZN1vX ec7l2HQWwDeLv+WTTo+80RDvwoc1NYTcGHJmLSv7VC6l6mmS2ZGxNipWSLC08vksFOL0 /M3W0fCxSW7ck/tuBf9nezQw4LZIk2fYn+hF5ajNJZzP/Ex0N+VLa979LoJK3QdeyuSK l13g== 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=Q1uIYNMhCGy4rHwwDKHArD0ERJS+cdwEigc/mkUrZDE=; b=0++coBNxRdKJnndKAOWqnOVr4s7dWh3AZfV6NJvsbTfos0/1FeMyp3mQy8bpz1Wdnz MxEKniWplbHnxGP90bDrzJ2ICTN/rTVUPDo3wH7gVj49SQVzi6JgNPH1wYQAwM/JhsIT EHrCYcnDhJxhWbx5eECpQ6Hb54BEi1M/YGqxOVvrs3cF3yutKRVxqLNe/iLzXvk4EGW6 eFGSKhwJmvHhoKZHKmEpbTkjgLnxwSj79FYrHkEQrL2WY1t1cmI5VxDBD5cNUlsoQqNM pUXEi+EvRrIm0FiVyW97QEhtlI3yp69FnUEmsgVym55s+KVU4ByeS9WpBtd4PnYfttyq ai5A== X-Gm-Message-State: AOAM5306S8dqnU7JaO22vvZXEUNdhCCNDikLgUe+ABaB2z69nBWDfbdI VNtNDJEg1JchKdnkAjCKsUqkWQ== X-Received: by 2002:a17:907:1623:b0:6f6:e9ce:9926 with SMTP id hb35-20020a170907162300b006f6e9ce9926mr10073326ejc.360.1652078934509; Sun, 08 May 2022 23:48:54 -0700 (PDT) Received: from [192.168.0.242] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id e1-20020a1709062c0100b006f3ef214dafsm4714932ejh.21.2022.05.08.23.48.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 May 2022 23:48:53 -0700 (PDT) Message-ID: <41d6b00f-d8ac-ca54-99db-ea99c9049e0a@linaro.org> Date: Mon, 9 May 2022 08:48:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 5/6] dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531 Content-Language: en-US To: Peter Geis , Frank Wunderlich Cc: Heiko Stuebner , "open list:ARM/Rockchip SoC..." , 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 , Linux Kernel Network Developers , devicetree , arm-mail-list , Linux Kernel Mailing List , Greg Ungerer , =?UTF-8?Q?Ren=c3=a9_van_Dorst?= , Mauro Carvalho Chehab References: <20220507170440.64005-1-linux@fw-web.de> <06157623-4b9c-6f26-e963-432c75cfc9e5@linaro.org> <2509116.Lt9SDvczpP@phil> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 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 08/05/2022 19:04, Peter Geis wrote: > On Sun, May 8, 2022 at 8:12 AM Frank Wunderlich wrote: >>> >>> I think the issue is more for the description itself. >>> >>> Devicetree is only meant to describe the hardware and does in general don't >>> care how any firmware (Linux-kernel, *BSD, etc) handles it. So going with >>> "the kernel does it this way" is not a valid reason for a binding change ;-) . Exactly. The argument in commit msg was not matching the change, because driver implementation should not be (mostly) a reason for such changes. >>> >>> Instead in general want to reason that there are boards without this reset >>> 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/Documentation/devicetree/bindings/net/dsa/mediatek%2Cmt7530.yaml Looks ok. >> >> Another way is maybe increasing the delay after the reset (to give more time all >> come up again), but imho it is no good idea resetting the gmac/mdio-bus from the >> child device. >> >> have not looked into the gmac driver if this always does the initial reset to >> have a "clean state". In this initial reset the switch will be resetted too >> and does not need an additional one which needs the gmac/mdio initialization >> to be done again. > > For clarification, the reset gpio line is purely to reset the phy. > If having the switch driver own the reset gpio instead of the gmac > breaks initialization that means there's a bug in the gmac driver > handling phy init. > In testing I've seen issues moving the reset line to the mdio node > with other phys and the stmmac gmac driver, so I do believe this is > the case. Yes, this seems reasonable, although Frank mentioned that reset is shared with gmac, so it resets some part of it as well? Best regards, Krzysztof