Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4776621iob; Mon, 9 May 2022 01:03:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKeX2Zig2BfJH0OpuHMIruEZirgob7NwXF8TmgegeUACFMS/ZheWoHyivBh3EojRgf2ain X-Received: by 2002:a05:6e02:1bac:b0:2cf:832a:e41 with SMTP id n12-20020a056e021bac00b002cf832a0e41mr5471663ili.102.1652083425698; Mon, 09 May 2022 01:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652083425; cv=none; d=google.com; s=arc-20160816; b=vDIaFh76/OfxyzFQaB0pWhRcHgKN+vCDYVIJGP9Wy0cji3xYG9ys65Nx3jmun6ao1U X3UPFnaaJaMr/bMvsZtDCd/Nlyyr+xlirGAC3ya3t9arzzLAvwNiP3/wBjIPwMidTbtn 4mi5AK28uyulVXHwwNnxJRZyPGt9kynn0mrx4Ap1nPlR8EY/G2LJqnc0AWMBdozic/8+ I54ayuseZxzMQKtPckcnxc35CZNQKrfque5UqthckX8/z6+wb1iOMZWy2PCgPrWgQvK2 mBC35KLrMtawcZwPcTwpes08MCRQfqFyv75gxvciCcyAsax0lwEDFkbOLqwCW1a2OwoX ZIIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EfKSHQDibeseSs0JWfGzoce1pQy4P1/xdY6RmpnZyRg=; b=ZqJVZysECnDubqKV1bFFPWat1aXOV58YRcCtwKc67INeYC9P8jTlB9PudEWI3+8RNG A/bHdMKohr9YHrt4uuG1o1Ppi3SYs5bV+l7wXlICbtnoiZSIts0pGZzwzHlkVUbhqE74 oYIENI61dgCLtBivVWYFyIb/XwuNR4oVtvYAaDJBcirxKEbAA0imOf6ULPUvMwI1oxt6 Trnq6cD7/+RQZNEl3spZEOOoPYqnTYn2z/YlwDE699uYK7xGk73fS7ZaM/Ak2fOsRYWh d6Ukx1ukafOQxg4yQTgD/QHOS2OaNxuQKfPv5zJM+O/wiSN1Mto799DGnYNfXl85RTw5 +oyg== 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 s6-20020a056638218600b0032acae4c60esi11531447jaj.144.2022.05.09.01.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:03:45 -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 389751CE613; Mon, 9 May 2022 00:55:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231194AbiEHJxi (ORCPT + 99 others); Sun, 8 May 2022 05:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbiEHJpx (ORCPT ); Sun, 8 May 2022 05:45:53 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B93DFBA; Sun, 8 May 2022 02:42:02 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nndQD-0008Ms-Hg; Sun, 08 May 2022 11:41:49 +0200 From: Heiko Stuebner To: linux-rockchip@lists.infradead.org, Krzysztof Kozlowski , Frank Wunderlich , linux-mediatek@lists.infradead.org, frank-w@public-files.de Cc: 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 , =?ISO-8859-1?Q?Ren=E9?= van Dorst , Mauro Carvalho Chehab Subject: Re: [PATCH v3 5/6] dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531 Date: Sun, 08 May 2022 11:41:48 +0200 Message-ID: <2509116.Lt9SDvczpP@phil> In-Reply-To: References: <20220507170440.64005-1-linux@fw-web.de> <06157623-4b9c-6f26-e963-432c75cfc9e5@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 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 dropping 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 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 ;-) . Instead in general want to reason that there are boards without this reset facility and thus make it optional for those. Heiko > >> allow port 5 as > >> cpu-port > > > >How do you allow it here? > > Argh, seems i accidentally removed this part and have not recognized while 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 for user ports." > > regards Frank >