Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3412470pxb; Mon, 18 Oct 2021 14:51:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnkCGeAT/O3m6EEJhYEPH1s4isxKlO15yu9XHBzc3rNiAInQYjhw2aPJkmL4IC2vtr7Xn1 X-Received: by 2002:aa7:8294:0:b0:44c:c0b:d94c with SMTP id s20-20020aa78294000000b0044c0c0bd94cmr31267182pfm.24.1634593896797; Mon, 18 Oct 2021 14:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634593896; cv=none; d=google.com; s=arc-20160816; b=S5Z9/uc5vEaUFYVqKa5LplgdgULkhhb5Kv1uNBb7aGH5tDTP5OpTN0Q+hwo5Fkz68D pvHUAS4ptx2qKy8O8aZUSGbimyyMeGGMvWoTY1TQ6FHE9VFgJfcrvLJiG+jgeQiI984b SLXvU1drg5EuPs7mJxSHUyqa32VNqnme8f/a6o80UfXOcomknWHA4BQReOW4+6Nc7HAZ Ev6JRCTI3DGyBqiXVhmIQxSLWREuutwhaG2/Bps6XsA6OlIhki/TjtMC8MKVAGmd393p huiihurkRRn/sT7CvegGJ4WMf29Su0GIU1+j/uKhEvzFZX2LuJAQ22fuNO41YfzzdVBn tBkg== 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=BapwsbtYOPKbDg5KdZ4f1xIYaXmcW0uLqeUff/ga3b4=; b=JYSIS4/x+QLZadAD9wbxndxGIVGGMAYPe+IUGk/xFVq77MeJcXMGToTyfJHNkE7SQi a3zwdj3dOD0tSdTfCfEalzrBtDBQaDRcDg1t35rsVxwm2A2DbYofjL+jQa9ziSGnobQI BwT2pWP5TjLx0vXa/Imr0BTI73RCDqkWFzkY2IQc2kLmIzFaYvLbqTPlrZnQLwLDLywP wYzU1W4aZKcvwyFLx8gYSuCAIjVcEKw16ZjAhHPJlVQd6/UxL8LGlBiy20iZBHCHokyX yzVW/AEbSrEsbAa+rSupdbYMWICNDhcCSanLaSddoZnvR2kujg1ERm2OIQDqPNoKIMg6 cWQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=viCmyS0A; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si22237154pga.509.2021.10.18.14.51.22; Mon, 18 Oct 2021 14:51:36 -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=@lunn.ch header.s=20171124 header.b=viCmyS0A; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232628AbhJRVuK (ORCPT + 99 others); Mon, 18 Oct 2021 17:50:10 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45344 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbhJRVuK (ORCPT ); Mon, 18 Oct 2021 17:50:10 -0400 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=BapwsbtYOPKbDg5KdZ4f1xIYaXmcW0uLqeUff/ga3b4=; b=viCmyS0AVopFgGRSsw30OCs3xI cxP9pcl/PKkCFoHWkxt8VAHiVOF+RUZQp2pGmX0wnjvE7TVTO6NvOUDgMYD5FIIeI/v62DMCNV5Nk HWZVRUXtdJsI9K12dIQAzouE/AYS5XtO236GeLi6Upjwpi0Y6PFjS2Ji/5iXu2vu77jQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mcaU6-00B0rC-FG; Mon, 18 Oct 2021 23:47:54 +0200 Date: Mon, 18 Oct 2021 23:47:54 +0200 From: Andrew Lunn To: 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 Subject: Re: [PATCH v3 10/13] net: phy: add qca8081 config_init Message-ID: References: <20211018033333.17677-1-luoj@codeaurora.org> <20211018033333.17677-11-luoj@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211018033333.17677-11-luoj@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +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