Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp499844rwb; Tue, 29 Nov 2022 01:17:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ezEVdJGSnDXmKT6qHoZ6M3fx8ISYF0E0PlpOJKzpX6vDv6F9ggan0jGDcB4upl7P4D9RN X-Received: by 2002:a63:1801:0:b0:45f:a78b:f905 with SMTP id y1-20020a631801000000b0045fa78bf905mr41634730pgl.296.1669713459250; Tue, 29 Nov 2022 01:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669713459; cv=none; d=google.com; s=arc-20160816; b=vYHuNdf5kuTPBxH6/6XFpy/so5fDGvmh1HOz/1klUFFL5ZVSmUjypCmngB2VYsPXUg SA6SXUpnMYbCejvmYv4+3S9tu/KoFEJSaJocMkWDdYqqwuVxX9LgHPkoJU6x8CSzYucQ mrDKo/4xJppGDSq2dle3RTacWAXHk585OXGuVzrdSPN94wH+UJ4NTxCwDIX+O7dM92vx SDEnVZyf/qr//zQE0zM7n/cwCdQJpppzGIiHia+OTpfq6OxkHvQV3tXbbN9CuQVq/1ts /4ayb8C608u2NgIQA0fQ63Kbob9MOy5mKVGD8ii+FUldXBHS1+AHc1w+naFzpmmuar+S LuJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/392GykBtHnWPhSp8IdLCn51RY5siGcKVRp0TZIw73Y=; b=jQLMtSWBA2CRr6NTBZ5aM/YTX1vEvrcd8tTinRjUV+126Bvoiz195kG8gXjD3i3Cyz jEvFHjMWxnakeOVGqvusWVOTwFLVqWiVaGbWGX33qUKZpkQN5j9K1K09I9MkDtF1PY0+ R0hfwM8pQA5ZW26d2CqHGtn8RL4b5kaoAyA3iWijeVva6rJwrd5EscbHWgvagLHKkYLF KlGqKJ6M/dNvg7lBNjqDd+PTpiEN+HviVS1FQxnoElUXt/9sHvJkDCKvfJhc4QlL3x4u AIl4I70J4bE4Tk7sRFrNO76vId6ZE13ym+QyX+kdD84gyCVPtGAqqHVkFO7N4AVNUSQB 9EyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AfYOt9xg; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a170902c95200b001884ba97a0fsi16071798pla.567.2022.11.29.01.17.25; Tue, 29 Nov 2022 01:17:39 -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=@linaro.org header.s=google header.b=AfYOt9xg; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231531AbiK2IyR (ORCPT + 84 others); Tue, 29 Nov 2022 03:54:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231545AbiK2IyE (ORCPT ); Tue, 29 Nov 2022 03:54:04 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C50490AA for ; Tue, 29 Nov 2022 00:53:52 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id d6so21418979lfs.10 for ; Tue, 29 Nov 2022 00:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/392GykBtHnWPhSp8IdLCn51RY5siGcKVRp0TZIw73Y=; b=AfYOt9xgm8N8sshzqyj5GnPwFJ+Ud+2wHuhE1yU3oqhrEDFnCD4wJ2lbOzn4uBuEqA MmcMBM/HS258xdVZOPmlsr5Uas2/bX4R7UcVjJFhEweaWCbGW0YGXzQizUo8Y/N9EluR m8vQaDohkKsTnOb2yYTpBzNB9LwCda3WIj/pzf1uZyzvjCJWWHazyjFIAc2dl8otHUre +TwGaKsmEzid8rfKECqH9ajtV48SGwvPjZ9Amehm/jOcLDuvTXO63YEqq96IfoZjvgoc I+gdbV5hF9a31nqhycfBvK+iWVglwEoi459sE6Z1PNunrHNbIBL0PwPLup+s6WQK1nAg 6kog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/392GykBtHnWPhSp8IdLCn51RY5siGcKVRp0TZIw73Y=; b=DuIv+jQv6fVZl0Hqxe5XB7wwYfohH6H4Om2w3ABU1p7HCGmpH/XzsF4QSzlVgccFa8 2DBrGjxH4bemRuhUkkmtvnpEyNP+kKdyeiC+8l9AuJdYCAO5God7CPtTOZxleVzYNknd R79j98jabjFjZexAi6S2as4yNC/JqPaKC8Srw2cGJqMSlQRBtbynAT/fKoFj0u2m4lxk 5shlWzqRhxt2eRwWUV2bOgHgchuQExZKvTRipaiorMTVQffpm42JdHNTS6uQcovf5/3e hyeVMhbvf2OGsqgp64BBdM1n7zN3q2NLTCCl22sbtxiKzvu5Eufh6VA58cXJUlJybFPq wLOg== X-Gm-Message-State: ANoB5pkpFMPI21P58BGTQ5FCNvJaqunHeBAGQ7i5EVdMXLsr4KDIjmQH mAZWkjDLhtUkaYjfKQL67pL5yg== X-Received: by 2002:a05:6512:3703:b0:4a2:22cf:f44d with SMTP id z3-20020a056512370300b004a222cff44dmr13149775lfr.118.1669712030458; Tue, 29 Nov 2022 00:53:50 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id c13-20020a056512324d00b004b40f2e25d3sm2133465lfr.122.2022.11.29.00.53.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 00:53:50 -0800 (PST) Message-ID: Date: Tue, 29 Nov 2022 09:53:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 2/2] ethernet: stmicro: stmmac: Add SGMII/QSGMII support for RK3568 Content-Language: en-US To: Chukun Pan , "David S . Miller" Cc: 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 References: <20221129072714.22880-1-amadeus@jmu.edu.cn> <20221129072714.22880-2-amadeus@jmu.edu.cn> From: Krzysztof Kozlowski In-Reply-To: <20221129072714.22880-2-amadeus@jmu.edu.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 On 29/11/2022 08:27, Chukun Pan wrote: > From: David Wu > > The gmac of RK3568 supports RGMII/SGMII/QSGMII interface. > This patch adds the remaining SGMII/QSGMII support. Do not use "This commit/patch". https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > > Run-tested-on: Ariaboard Photonicat (GMAC0 SGMII) > > Signed-off-by: David Wu > [rebase, rewrite commit message] > Signed-off-by: Chukun Pan > --- > .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 210 +++++++++++++++++- > 1 file changed, 207 insertions(+), 3 deletions(-) > > > -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. Best regards, Krzysztof