Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp158909rdh; Mon, 30 Oct 2023 18:00:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEM4P4yef7TaInZrlxk+mUKADPK9WcpF5Cn79I39DOozF2ogwE8OTeZV1YTyfJ/h8vGRV/a X-Received: by 2002:a05:6358:881f:b0:168:e7f4:8fc9 with SMTP id hv31-20020a056358881f00b00168e7f48fc9mr16109956rwb.24.1698714028583; Mon, 30 Oct 2023 18:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698714028; cv=none; d=google.com; s=arc-20160816; b=VbdU88dw1drOAuHbQrr1nQ90nAvFSCdwAEV8KTGl7XXznZPaMxtHasC3aV3C6r74Kw DPYaurXhatdTWl81G8lWvMD0BvylpIAqDKvnxFB4wA7e7sYHjyjq+TQZwZwduMsIf1dq e1IA0dLuGujBBYcwfsSvj8chQXKODGYFp7m/FGnYQVVWdW62EBKr51euXxELN3ojrudl TY838UOhuaB9pCfJgfcqyvSN7bzZaaZGZCQ9e0w1GQi1H5Ru3kebIs8R3jE5QiSr5ZjC P8V2zUMt6wv9M1h4quAlr500khjshc5Hlj8s1ODJ3BpWfea+nKWBU2pzSzYJcD6FxUWI Mv7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dQjReZhnkb4AP5DzfEzONPc2UVwhei3iUP21q72heac=; fh=gTDSNIuNj9GksXFNPkFFsEhArbZyE+PN1pGzdBoa3vA=; b=ctIMW3MiAW9xaOShwLJ8vnO7bOwVcqpHTcUKKnRIjNXatb+ZtxuecyomtVfxt6el77 JfIRdClJ1z/NRijWxNx8KihZMis0/4XDRBcF7OiUa6rPjJ9A0OHFUASL23fXzKh4k8RW 0MzUFawdF859t1Yq3VRRUAOJasfkjM2XJaaGPNs9Ca8W6zyopBw+Xm1K24lDcx2iys/d PccTtkj6begD08VlcAoBjLLFzZTJiomlkhJMJ8TsyBCDk035G8c9moqz2o5lCYqP6/x2 OywYk449D7l5esLJpO5CeQWV9To/jMk/bIia3DVpaj4rrQpAXvE0S24VAAHphwUUsYZb KN5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=MvQr4gRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id w62-20020a638241000000b005aee0914b6csi239130pgd.8.2023.10.30.18.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 18:00:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=MvQr4gRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E79568043EC8; Mon, 30 Oct 2023 18:00:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbjJaBAR (ORCPT + 99 others); Mon, 30 Oct 2023 21:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjJaBAQ (ORCPT ); Mon, 30 Oct 2023 21:00:16 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27AB2C1; Mon, 30 Oct 2023 18:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=dQjReZhnkb4AP5DzfEzONPc2UVwhei3iUP21q72heac=; b=MvQr4gRtP5TUQzFcesFdjRrYme 5SXVO0QJTaYOP+EGzcQcN2ctQLXVp6Ppzk7tt8Zu7kE70nqeeKNu3DKtWXDCtEMVk4gQSpxPcpb49 Id365M9q0gSIlDJDxDrF2Cbq6lqo91fLnN0adXfK6zF7kVXekX0xMz9zeE8DKApQ6l8Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qxd6z-000Zkf-Ik; Tue, 31 Oct 2023 02:00:05 +0100 Date: Tue, 31 Oct 2023 02:00:05 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Ante Knezic , conor+dt@kernel.org, o.rempel@pengutronix.de, UNGLinuxDriver@microchip.com, davem@davemloft.net, devicetree@vger.kernel.org, edumazet@google.com, f.fainelli@gmail.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, linux-kernel@vger.kernel.org, marex@denx.de, netdev@vger.kernel.org, pabeni@redhat.com, robh+dt@kernel.org, woojung.huh@microchip.com Subject: Re: [PATCH net-next v4 2/2] net:dsa:microchip: add property to select Message-ID: References: <20231024142426.GE3803936@pengutronix.de> <20231027063743.28747-1-ante.knezic@helmholz.de> <20231030174225.hqhc3afbayi7dmos@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231030174225.hqhc3afbayi7dmos@skbuf> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 18:00:25 -0700 (PDT) > So, my opinion is that although what Oleksij would like to see is > admirable, I don't think that the REF_CLK direction is a matter of RMII > MAC vs PHY role, and thus, we wouldn't need to change "rmii" to "rev-rmii" > and cause breakage everywhere. It's just that - a matter of REF_CLK > direction. It's true, though, that this is a generic problem and that > the generic bindings for RMII that we currently have are under-specified. > We could try to devise an extended RMII binding which makes it clear for > both the MAC and the PHY who is responsible to drive this signal. You > are not attempting that, you are just coming up with yet another > vendor-specific MAC property which solves a generic problem. I can't say > I am completely opposed to that, either, which is why I haven't really > spoken out against it. The PHY maintainers would also have to weigh in, > and not all of them are CCed here. I would recommend looking around other PHYs and find a property which does what you want, and copy it. We do have all sorts of properties. There are some to enable the REF_CLK out of the PHY. Some to disable the REF_CLK out, some to disable it when the link is down, some to indicate what frequency it should tick at, etc. If you want to go the extra mile, maybe you can make a summary of all these properties, and maybe we can produce a guide line for what we want the properties to be called going forward. > I am afraid that creating a CCF style binding for REF_CLK will be an > enormous hammer for a very small nail and will see very limited adoption > to other drivers, but I might as well be wrong about it. Compatibility > between RMII MACs and PHYs which may or may not be CCF-ready might also > be a concern. I also don't think using the CCF makes too much sense, except for where the SoC provides the lock, and already has a CCF covering it. I would also be hesitant to add more dependencies between the MAC and the PHY. The DT often has circular dependencies and we have had issues with probing being deferred because the core does not always understand these circular dependencies. Andrew