Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3743135rdh; Tue, 28 Nov 2023 02:38:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGF9jfUXjKcG/e+c7B+r5EYjVQKqGjXlJcgRkE72ltkvJOxCknNEGus0py9cW5J2ACwrfSt X-Received: by 2002:a05:6830:6b93:b0:6d8:1992:5456 with SMTP id dd19-20020a0568306b9300b006d819925456mr11768509otb.25.1701167907588; Tue, 28 Nov 2023 02:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701167907; cv=none; d=google.com; s=arc-20160816; b=uuNwwYNZE/+tW9BDdcfx079XFnL9YvKaymnHkVYSKz49rpy7a5e6/X/sK4Wz83Oi8V CM0qyRrgthTQi/w2nRXz+dQdNYFJUsg5U84IxNOhVVBa2czUJD6pDqAgb07I/f0v2rP0 nnGaqeE5+OiSgOrLa9yn6Vq+o/BHfylx20gKFBsTw5N2sgpBbLfRprm50t2viAzjaH4U rwhvRLcu7hiF6IHJNFu6zFRIPfKpITyQjmRfpB72HpGoaVfqbW4aJHxayOWg9T4EgpHQ p/57mydqdM7VO4YK8RVad5Pf/vPzqkkIsgT/ikWtlp20+erqWmpaiuk7CAGYu1uA6Z1y aa3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ywzJ900a2ajqKWMAZ1RXwUxbjIFP4a4N/LNkum40b84=; fh=coM8qcc5wCr1uf+FRqkVnGQZpUE3Udm78hv3ZS8K6Nw=; b=TmJkDIUp92HAagZvRRwo3b9rGIDtWPuajgYCybVcC6k2FcrzQl3OdRknEz7FiiT2mm /h92i/y87lDTz+f4bPPlvGYlRGDn4pSL1QieUllupd4tF2xPJntWn8YA92Eb5OWX6Nhq doWB4sR7VMw9w7NKsYKOtZMUdiBolCTUC1JHNHw/8IzDZ8NuRR02dM0+GIRYA0GqjGpi InoVDxDWxmuy3bOV4SuKO2qF2+hSG/CGbls1JnAdJKUr+71d3WbKAKdU2TiPnyMPF/Qi ZLxKxhy9mHhP5PZn7UC4Wc0GAXBX8tdFPa2zu6En1JG+EYUBXywgBZANsb2o9+AM9UJc 9gTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=OEaE8iBJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id r9-20020a63fc49000000b005bdfbf34f9csi11908329pgk.735.2023.11.28.02.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:38:27 -0800 (PST) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=OEaE8iBJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BE40480A9D49; Tue, 28 Nov 2023 02:38:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344450AbjK1KiA (ORCPT + 99 others); Tue, 28 Nov 2023 05:38:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234937AbjK1Kha (ORCPT ); Tue, 28 Nov 2023 05:37:30 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 435E32720; Tue, 28 Nov 2023 02:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ywzJ900a2ajqKWMAZ1RXwUxbjIFP4a4N/LNkum40b84=; b=OEaE8iBJFMLypOJEI7eDK6VbXl HevRBMVCn3wtHBWmLzYecdk3q/VcAcQRFH5dalBCaCrFwhMTVdzQ5BcvQa3xsF1YE9L/a+XQeXoSc TY8c4FO3eAFzAWZPD8Vhtw27uNh6sfjxbz2n2alhRf+7HJGugNwAb+C6oElow7RyJdOj5ffDFR/Gi T9FPW7U5z6JxJohiIus6zRYQ2nDfqAJ9ATa9fy4lpnWIVy9YwkEZ3tOGCP3Ftqpygho2vCDB4T3Jl CLMAiQRkfPG1y7Ua+Iuxi+SYzV4ZHF/SJ0Gf8UcmZ361n4uTeb+DWMAenQ56Z1ndb0dCuHRRFjk5I +1KL3LTQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:37610) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r7vQi-00079K-05; Tue, 28 Nov 2023 10:35:00 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r7vQi-0002sT-7G; Tue, 28 Nov 2023 10:35:00 +0000 Date: Tue, 28 Nov 2023 10:35:00 +0000 From: "Russell King (Oracle)" To: Jie Luo Cc: Andrew Lunn , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hkallweit1@gmail.com, corbet@lwn.net, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v6 3/6] net: phy: at803x: add QCA8084 ethernet phy support Message-ID: References: <20231126060732.31764-1-quic_luoj@quicinc.com> <20231126060732.31764-4-quic_luoj@quicinc.com> <0b22dd51-417c-436d-87ce-7ebc41185860@lunn.ch> <8e4046dd-813c-4766-83fb-c54a700caf31@lunn.ch> <9c4c1fe7-5d71-4bb2-8b92-f4e9a136e93d@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 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]); Tue, 28 Nov 2023 02:38:24 -0800 (PST) On Tue, Nov 28, 2023 at 05:50:41PM +0800, Jie Luo wrote: > > > On 11/28/2023 5:00 PM, Russell King (Oracle) wrote: > > On Tue, Nov 28, 2023 at 03:16:45PM +0800, Jie Luo wrote: > > > > > The interface mode is passed in the .config_init, which is configured > > > > > by the PCS driver, the hardware register is located in the PCS, this > > > > > driver will be pushed later. > > > > > > > > Is this the same as how the syqca807x works? Can the PCS driver be > > > > shared by these two drivers? > > > > > > I am not sure syqca807x, would you point me the code path of this driver? > > > > > > > > > > > What i don't like at the moment is that we have two driver > > > > developments going on at once for hardware which seems very similar, > > > > but no apparent cooperation? > > > > > > > > Andrew > > > > > > The PCS of qca8084 is the PHY PCS, which should be new PCS driver, > > > in the previous chips, we don't have this kind of PHY PCS. > > > > No. PCS drivers are for MAC-side PCS drivers, not PHY-side PCS drivers. > > > > +------------- > > | PHY > > MAC---PCS --- link --- PCS --- ... > > ^ | ^ > > | +--|---------- > > For this PCS | > > Not for this PCS > > > > The PCS drivers in drivers/net/pcs/ should be in PHY side, such as > pcs-lynx.c and pcs-xpcs.c, they are configuring the MDIO device > registers. Wrong. No they are not. Just because they are accessed via MDIO does not mean they are in the PHY. MDIO can be used for more than just the PHY, and is on a lot of platforms. LX2160A for example has many MDIO buses, and the PCSes (of which there are multiple inside the chip, and use pcs-lynx) are accessed through the MDIO bus specific to each port. They are not MMIO mapped. The same is true on stmmac platforms, where xpcs is used - xpcs is the _MAC_ side PCS. Sorry but you are wrong. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!