Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3282809rdh; Mon, 27 Nov 2023 10:10:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoiiPr2u6tAxF/ks9SNGZzvSdVmI6XeQKZjzxLVV9bL954qRHwnVAsN1MnIz6CPtMfdBnZ X-Received: by 2002:a05:6870:910a:b0:1f9:5efd:7207 with SMTP id o10-20020a056870910a00b001f95efd7207mr14354074oae.40.1701108641851; Mon, 27 Nov 2023 10:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701108641; cv=none; d=google.com; s=arc-20160816; b=OOaMWCkCrPglT4Txl3S+FWOtt+WBpzxdhVl6Mrc2MxPLV/WUQT/yraPmV+eeTEeAIz /BrQa5BkmFUCr0qELqwXswuF/dzqCA98TKAj/CLGlnkTR/zbNXKmccxuVwQ7qSRcHMUe VdSFVR/g3GPvsqGxexQ7BDy7tYLnn25bAVlatJXZMb0cSsZQNmXuccPglmh2lBbH4/iE tiqgLkd99gt9UwY3RK9GHRyOr1KcQqQ996wDPd6C05fOvjtZOrdGnu5kLA10rJvc4+mD K2xTJ82Y/EUqSNs89Z4qwEeeGLP4ooHzuJ8WashlWOGBw5CtJRvEKxDz1XdAgwtZEFmN hCeA== 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=czNXjKBE5YCosfT9d3RwTB4c1szf3nqsIBvuFOt820Q=; fh=EKjGpEuBfFsDLqLAgr1AWFdFzHUuqHOvsEZyoKd9jT4=; b=T/ac6w0APFpjiJEf3S1/g3H5mzgfn0Ht2mJ8FzsaPe4q3KurgT1CVfE2RTVg8WEYwA EnX+9ljjB8GLZAxAhhlz8LBd9Le53JWKW8h1OcfOjjGHajybenMu/NHyqY3NdAxphSbR 8d9Tu42CxkWQtR5468ocmNtbE6YfsuvtBHB3Z5G1Uii7ufawX5boT5NktttkR09Jm2KR TgXjZELnE7XMFutYeHnwCvr7Zu1oZJiDr5CqlsgdlWjqGKUdPa81rl8BxjKO+fORdyXu PuB3WHxRmtleptcr3jck2l9/2QA2821cChK55IET2lTKtP5hoARa4v4B0LZXrOaDfpgh l13A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=cVxuJfOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cy13-20020a056870b68d00b001fa059c1fd3si2880492oab.271.2023.11.27.10.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 10:10:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=cVxuJfOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 0A89580942CC; Mon, 27 Nov 2023 05:22:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232819AbjK0NWj (ORCPT + 99 others); Mon, 27 Nov 2023 08:22:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233276AbjK0NWa (ORCPT ); Mon, 27 Nov 2023 08:22:30 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320CFD5B; Mon, 27 Nov 2023 05:22:36 -0800 (PST) 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=czNXjKBE5YCosfT9d3RwTB4c1szf3nqsIBvuFOt820Q=; b=cVxuJfOIsAlvcd2dxILBDwNiDO aR+cVzzhcIVXGgC2Ncj1rTIcY8yiK61dUAQFJ4BM9myTRy9Knzel936lpaxGamFriHTMhdc3H2J0w TwO8tkpZvJDRVxw1s1r6E09iKYD0ARynBDWzgS9KPKxoQlwq8zbcIi05S46A8lDHocJQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r7bZ9-001LLX-GV; Mon, 27 Nov 2023 14:22:23 +0100 Date: Mon, 27 Nov 2023 14:22:23 +0100 From: Andrew Lunn To: Jie Luo Cc: 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, linux@armlinux.org.uk, 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: <8e4046dd-813c-4766-83fb-c54a700caf31@lunn.ch> References: <20231126060732.31764-1-quic_luoj@quicinc.com> <20231126060732.31764-4-quic_luoj@quicinc.com> <0b22dd51-417c-436d-87ce-7ebc41185860@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 05:22:57 -0800 (PST) On Mon, Nov 27, 2023 at 02:21:46PM +0800, Jie Luo wrote: > > > On 11/27/2023 1:31 AM, Andrew Lunn wrote: > > > + /* There are two PCSs available for QCA8084, which support the > > > + * following interface modes. > > > + * > > > + * 1. PHY_INTERFACE_MODE_10G_QXGMII utilizes PCS1 for all > > > + * available 4 ports, which is for all link speeds. > > > + * > > > + * 2. PHY_INTERFACE_MODE_2500BASEX utilizes PCS0 for the > > > + * fourth port, which is only for the link speed 2500M same > > > + * as QCA8081. > > > + * > > > + * 3. PHY_INTERFACE_MODE_SGMII utilizes PCS0 for the fourth > > > + * port, which is for the link speed 10M, 100M and 1000M same > > > + * as QCA8081. > > > + */ > > > > How are these 3 modes configured? I don't see any software > > configuration of this in these drivers. Can it only by configured by > > strapping? > > 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? 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