Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1217878pxb; Wed, 20 Oct 2021 00:10:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7geiZ/KDHCqYIxCUEv+CMkq+NDslAzJxf85TRhJn4lzXR4BGkNwvBUDmxluHTpE78fdYi X-Received: by 2002:a05:6a00:23d3:b0:44c:a67f:49af with SMTP id g19-20020a056a0023d300b0044ca67f49afmr4557684pfc.50.1634713805186; Wed, 20 Oct 2021 00:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634713805; cv=none; d=google.com; s=arc-20160816; b=LGzxS/3asRtz6lkDZEHwkM5BuCeklwMzDWZKUc0xGsZgszfnywxlc2hn+50BGXZFPj yo8E9jPk0G/Ii/9xnxdqlHW4qysyiPBc4ItRzT52g+i74hcUJFzhJEqV0sSoggp9ZCT2 kBeCXg766goAL927J2y45QReqRnVopkiVQ757G0Diow+wmltrw6da9kS8nH2h/WTVLsQ +UFIsPl2mxL0sQztcna6xXRCU2mAe2jwv0U8JqpKisyOhz7tt1n+i64zY7qqsEvooOaX 6cZW0fDMofVJGNo+4SzvwIuuUGEKAf8WsnHNZ6wAPq1hVJPFX6D2SksBheLNyov4Ebha GVkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=LYXNK56VnUPKwkD/Q/0iGPAE63E7ZSvi9gqsmGRi4QQ=; b=bq9Yz1fS6Zv9Frxb4yzZpU7amRepFiTHDCKI6HrNu+jjF3aVtsr5Z4gwpJDTfSTufm 4T46TSrvUgcI8WLafEvYhQbAQ2La8RaXjbCkS/QYElcoH/gYEluQB/aPo/gk/+LoNoVl NjQy1k5MuPOnJTsnlpJ3MWq6bLlYD7GhqTai1lFVLfUUVA+/rFnp0nKyNhi7qI5QJ6m6 tOQ4ursGJYoZe+CiVJ8FJbAsl6A6EXw1aN3h+bHCu3y6G+qDDgD46aoy/ERTH8FyPcNS heDpoZs6zhbzRMsQIlYpEvOHEYaVZp2/7xLzPpnTykVBh03dzO9jYkbuH5oV3zXcYMyc 0hPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=n0f+fNvM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1886982pgc.460.2021.10.20.00.09.51; Wed, 20 Oct 2021 00:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=n0f+fNvM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbhJTHKE (ORCPT + 99 others); Wed, 20 Oct 2021 03:10:04 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:28579 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbhJTHKC (ORCPT ); Wed, 20 Oct 2021 03:10:02 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634713668; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=LYXNK56VnUPKwkD/Q/0iGPAE63E7ZSvi9gqsmGRi4QQ=; b=n0f+fNvMG1kNQgWobtZx4shAp6vwRnyAzELhl8aOG2SmovHRPPGhKwcdNYiwlHAefujU9Y1Z 3/sQ0aUE8MqTAktlYQ9vZHBwDKgNViNE8kgLW1LX9eNpo/Usr6bZEcMU/FXJanSq6WPnT0S3 CSR8Cqfy8jfihQXiQ1f6nbxavVk= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 616fc02d5ca800b6c1dc0a51 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 20 Oct 2021 07:07:25 GMT Sender: quic_luoj=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6B788C4360C; Wed, 20 Oct 2021 07:07:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.92.1.38] (unknown [180.166.53.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luoj) by smtp.codeaurora.org (Postfix) with ESMTPSA id 93D3EC4338F; Wed, 20 Oct 2021 07:07:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 93D3EC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=quicinc.com Subject: Re: [PATCH v3 10/13] net: phy: add qca8081 config_init To: Andrew Lunn , Luo Jie Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sricharan@codeaurora.org References: <20211018033333.17677-1-luoj@codeaurora.org> <20211018033333.17677-11-luoj@codeaurora.org> From: Jie Luo Message-ID: <32e72ff0-b540-a459-de07-09cfb3216143@quicinc.com> Date: Wed, 20 Oct 2021 15:07:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2021 5:47 AM, Andrew Lunn wrote: >> +static int qca808x_phy_fast_retrain_config(struct phy_device *phydev) >> +{ >> + int ret; >> + >> + ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_10GBT_CTRL, >> + MDIO_AN_10GBT_CTRL_ADV2_5G | >> + MDIO_AN_10GBT_CTRL_ADVFSRT2_5G | >> + MDIO_AN_10GBT_CTRL_ADVLPTIMING); >> + if (ret) >> + return ret; >> + >> + ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FSRT_CSR, >> + MDIO_PMA_10GBR_FSRT_ENABLE); >> + if (ret) >> + return ret; >> + >> + ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_CTRL2, MDIO_AN_THP_BP2_5GT); >> + if (ret) >> + return ret; > Could that be made generic and put into phy-c45.c? Is there anything > specific to your PHY here? > > Andrew Hi Andrew, Thanks for the comments, there is no specific to the PHY, will put it into phy-c45.c in the next patch set.