Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1278907rwb; Tue, 29 Nov 2022 11:13:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EzOjFjsTLSvuk70RLvmMth4yEvdYy071Uvy2VQXF2fvQRX+6c8nc5LLwUzTgdIzooiXri X-Received: by 2002:a17:902:d58d:b0:17f:72a4:30a1 with SMTP id k13-20020a170902d58d00b0017f72a430a1mr41446601plh.124.1669749234171; Tue, 29 Nov 2022 11:13:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669749234; cv=none; d=google.com; s=arc-20160816; b=aHsSslYp76igi5iVjelqwSjFnNFK5KyktFBP2OS4d9bONQNilIca/tnRP2OduIAXWL 0KmBvpzc/8dbTl+T+mJNkMCojid1wg3hg72zLiSf+ebwegCVhM9xJK2+yEherLd0hDMk rkWNSopRTiawmxYYQmY5MhnLa/oNsmhkV3PIoT5/IA1yzFPt7A0kge2c0BP2nMGOlHm4 1q09g0cXwRjnhWPc+xLEB+MFM0Kh7R6v175lEtsS99raldauNSYEuQeA/RFkdMcQJXL5 fOzjSO3sMpme7n6uvntcBjap3VEvKkJM3e2DVCzK8h+rU5tEdndxdhmpX9Rfla1F+FUZ jF5A== 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=wIKgYoD0U9V/FJ0sV3et6MEEkcpyezkYMDQv2JE1xug=; b=wQQ1xgSDYPVWiUaXG97ljZ5G38ZIO0CfMd+pVgDbegPyyRTwFkCx9wV7USWow9+hd3 KeaNiO5wCdf8ExTYIXyI380ywz8ro1m14a+8IjgBY0hyexDN+MamkDzQ1McXV5L+K740 OBoCvXUPc0Zyr7IRH+jS6ewOtOVQcLOS6waakJSJrxT2Fuv0F4t6v83lK1aG9rQ9Q1uK O+mHazWPumk7k/LzO6UzkE9j8w/2EgJReY9Vr/MKf9CyFPfaDhuu/WgFE4XkMexlvLCp R8MGJ5NJx6fyP1+fi/LX+WTjGKeBBWk42lRZKxxCWiBaN5KRG8bqymM2iN7G5VtWxK92 LLZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=QEtv03LP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a056a001a4700b00563960fdb21si16933269pfv.260.2022.11.29.11.13.43; Tue, 29 Nov 2022 11:13:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=QEtv03LP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235700AbiK2ScK (ORCPT + 84 others); Tue, 29 Nov 2022 13:32:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235940AbiK2ScI (ORCPT ); Tue, 29 Nov 2022 13:32:08 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C93654C1; Tue, 29 Nov 2022 10:32:07 -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=wIKgYoD0U9V/FJ0sV3et6MEEkcpyezkYMDQv2JE1xug=; b=QEtv03LPOokn2byHbhnSg53HbY jTltuRc+dW47YOXRIu3rvks9tzGAyN+CjLvauNziwoYD6sEM+WMhsvjIV3DCdQddyvdQIk7h/LWFz zhUhSAdRizMqxiSK7l3mPkf5FnxJnjQus7VCsy3JX/80XH5UCML0fHKcCDMRuHeMGGDs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p05O7-003tzW-NM; Tue, 29 Nov 2022 19:31:23 +0100 Date: Tue, 29 Nov 2022 19:31:23 +0100 From: Andrew Lunn To: Krzysztof Kozlowski Cc: Chukun Pan , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Wu , Rob Herring , Heiko Stuebner , Krzysztof Kozlowski , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] ethernet: stmicro: stmmac: Add SGMII/QSGMII support for RK3568 Message-ID: References: <20221129072714.22880-1-amadeus@jmu.edu.cn> <20221129072714.22880-2-amadeus@jmu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 > > -static int phy_power_on(struct rk_priv_data *bsp_priv, bool enable) > > +static int rk_gmac_phy_power_on(struct rk_priv_data *bsp_priv, bool enable) > > { > > struct regulator *ldo = bsp_priv->regulator; > > int ret; > > @@ -1728,6 +1909,18 @@ static struct rk_priv_data *rk_gmac_setup(struct platform_device *pdev, > > "rockchip,grf"); > > bsp_priv->php_grf = syscon_regmap_lookup_by_phandle(dev->of_node, > > "rockchip,php-grf"); > > + bsp_priv->xpcs = syscon_regmap_lookup_by_phandle(dev->of_node, > > + "rockchip,xpcs"); > > + if (!IS_ERR(bsp_priv->xpcs)) { > > + struct phy *comphy; > > + > > + comphy = devm_of_phy_get(&pdev->dev, dev->of_node, NULL); > > So instead of having PHY driver, you added a syscon and implemented PHY > driver here. No. Make a proper PHY driver. I'm also thinking there should be a proper pcs driver in drivers/net/pcs. Andrew