Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3408478pxb; Mon, 18 Oct 2021 14:45:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsNxm/opiuaf/nj0BMxUOqwBKFI/tnkuK734KqtKFyYaTeqOCl5ajs3lehxh+qsKUXoCCJ X-Received: by 2002:a17:90a:17e1:: with SMTP id q88mr1680179pja.99.1634593531787; Mon, 18 Oct 2021 14:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634593531; cv=none; d=google.com; s=arc-20160816; b=Ytbtbsqi44hL7YjfS35rHudzvQ84LYj59NXWP76z9oj8n7KNlJ6UXZglpYHub0svhB k/3+RCGlEKbjlQQpcjV/TB8dY0rLdhVHCblxW/yWJDB+sgmEpgF7OWOVVXZoe/9t6uJw dEIVMZGYn+QMfRp/SDSizNoXoH5DI9hsDS1GKg2t+Xy/EXf++Layw0O2hwGEI6UZkGj1 l5JGJNTqMZpoZJTpyxoAfKQeKwOEI7PjK6kb2F5lNexjRErrpl2okNFsk9e5zfrITv2y nHl2vPFjB0uCrgfUrNTQELFsYQyOJRkfFaPAw40GEZHIwjhG3anmqX0MQgxkBi/6ErDh zAhg== 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=bkD2nLFxGvs8hX4pCzljKD2HfV6Z7HGJWd3D/XXQjuA=; b=gx4zgISKMFqZdzPRHbcEp5vf51VhiTaMfFBlWOG/HnHqVtlkhSUYFAJPeABGOihb8H nz0ulVHaxso16zi5KqeG6xHnp9SxTw+treS7fVprrm++YnTWwQxsPDXSdKEy2GMlS6F0 7VLWQMczd64M3sKzcNCATlYDG5mzDoCQ1XUIa0UqWzzyOdDFbC+Yl+ix0xDwn/42ltv1 fsVQi8ExSdUWUE8xDR2hwS9Kr/gP29FaspkUjAqrFwQm5n2wsuzMlPGj2sYGpk/ONV5Y JOrlas9amPw5VC2xtpJI0+PL1aDFtdEejMdBcmsfl2VFGRHCz+JOAsDPrviZlHiBy1X+ gQug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eTB67c4h; 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 d15si20287495pfd.149.2021.10.18.14.45.15; Mon, 18 Oct 2021 14:45:31 -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=eTB67c4h; 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 S231920AbhJRVq2 (ORCPT + 99 others); Mon, 18 Oct 2021 17:46:28 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45328 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbhJRVq1 (ORCPT ); Mon, 18 Oct 2021 17:46:27 -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=bkD2nLFxGvs8hX4pCzljKD2HfV6Z7HGJWd3D/XXQjuA=; b=eTB67c4hOEI27KR/gG9qXjXBKx TCWnoj02T4P7AteiO77SnStii/PkDwnb5CtUn3yubgqasaPMsvVYw3DdAlqwojqbZAgpL6vvIjb4x hcsiip57A9yJyce0W2YCyv+PQn9xyvLkDlPoqy0E8HSTvEB+S7QJ6NhnRSn3lpsbm7p0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mcaQW-00B0q5-Gk; Mon, 18 Oct 2021 23:44:12 +0200 Date: Mon, 18 Oct 2021 23:44:12 +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 07/13] net: phy: add qca8081 get_features Message-ID: References: <20211018033333.17677-1-luoj@codeaurora.org> <20211018033333.17677-8-luoj@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211018033333.17677-8-luoj@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2021 at 11:33:27AM +0800, Luo Jie wrote: > Reuse the at803x phy driver get_features excepting > adding 2500M capability. > > Signed-off-by: Luo Jie > --- > drivers/net/phy/at803x.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c > index 42d3f8ccca94..0c22ef735230 100644 > --- a/drivers/net/phy/at803x.c > +++ b/drivers/net/phy/at803x.c > @@ -719,6 +719,15 @@ static int at803x_get_features(struct phy_device *phydev) > if (err) > return err; > > + if (phydev->drv->phy_id == QCA8081_PHY_ID) { > + err = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_NG_EXTABLE); > + if (err < 0) > + return err; > + > + linkmode_mod_bit(ETHTOOL_LINK_MODE_2500baseT_Full_BIT, phydev->supported, > + err & MDIO_PMA_NG_EXTABLE_2_5GBT); > + } genphy_c45_pma_read_abilities()? Andrew