Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23880959rwd; Sat, 1 Jul 2023 08:42:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+RkBGdCIAsxjU9yvIlGMXOxNzQp5EEIFEy9Oaoad1VVAtCEyIzk+BsSa4kmes3ncH2vuZ X-Received: by 2002:a9d:4d01:0:b0:6b7:431c:15f3 with SMTP id n1-20020a9d4d01000000b006b7431c15f3mr6363880otf.28.1688226157044; Sat, 01 Jul 2023 08:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688226157; cv=none; d=google.com; s=arc-20160816; b=BqyCdC6Of7Dn0oSwnq5+atg2Zkr0OAKlMdeVy7S/17R5JHxz90V2RMZ0uKLt/STUH2 IkhxH49iJi9vfRG1aj/6ZTlF/mOYrc9GljF5Idw/CPQFFpvsNw3wrJsZD6ulTOQlF/zF T8tDsT+CRGPGstGGXQ0eUQxuF6WXkbfAoEwWGQ/v8YZbi7C1rha7yQlhBUwC6kCh6UZH oKsnaXCsXM8j4VJS5yyZtaC1hTDs9ml7KzeAth/i7q4VIs2vbbLUBDTccC0ITmc5d2ka Z+uHULhaJP3jVWpLrgq32nPV9D8e6QyzDzH+p0ECVYjdu1PO6WUek5qf4+sWZy2w/K5B sFCQ== 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=UrDZd01sY17XlPpwW8xUpVN2IB66JmwiqhYlu+kmtRQ=; fh=ApUO0fuTJD3LdDtObuv5Veq1fnN6bOjCp7tNCU1Rfiw=; b=oGVAZGXuAKnByGEkbMeAjPkvdysqUPzReL3cvG7aLAgGsVuLjcfjYZ1DsNEMrCw/g9 P+QzoiB5BwUNCBNEtcoDWD2SyomfNLPPQuu/wgvx3E+No39HQh48ZB/rs+2abip7RBLu XfgyrKCmdkQvoGeTmZEuCnFWwUQUTFyeXhg3d9z1mMVa6AZXj/0dGp+jTpGNAeIpRsQR Mslw3vBG2DIudSaPrLu1M/PcvgdLnV6GOugMGGUK5haWiFPYOdpul3YzTi2gH/d+qH9k D3/COY6A0o0bYe0fEbEx9G4SgLeBSKyShPaVHpO/zWC0ldiWwJp5ayT8Y2mse1Big6PT JxAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=g4Ja9GZy; 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 142-20020a630094000000b00553c2f85088si14957184pga.888.2023.07.01.08.42.22; Sat, 01 Jul 2023 08:42:36 -0700 (PDT) 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=g4Ja9GZy; 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 S230322AbjGAObD (ORCPT + 99 others); Sat, 1 Jul 2023 10:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjGAObD (ORCPT ); Sat, 1 Jul 2023 10:31:03 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A47FC35AB; Sat, 1 Jul 2023 07:30:57 -0700 (PDT) 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=UrDZd01sY17XlPpwW8xUpVN2IB66JmwiqhYlu+kmtRQ=; b=g4Ja9GZy2jHlncKMd7gzAhhx6+ n7kqR7ool2GLwQldH2udK0P8VRqNLHxvz0Hj8ec9zXPArf0DDiCUx9cRcpbIyvgZI6NtvBws52OU+ 2QYCozry/7SqpsOu9xJljfjioUolX7uN3LqBbo8dRRMlZVLWKXvrVZdkuP61YTlWXU8M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qFbcZ-000N7J-I4; Sat, 01 Jul 2023 16:30:43 +0200 Date: Sat, 1 Jul 2023 16:30:43 +0200 From: Andrew Lunn To: Jie Luo Cc: hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] net: phy: at803x: support qca8081 1G chip type Message-ID: <3e0477e6-f96e-4842-a0c2-b2cb744ee83a@lunn.ch> References: <20230629034846.30600-1-quic_luoj@quicinc.com> <20230629034846.30600-2-quic_luoj@quicinc.com> <48e41540-6857-4f61-bcc5-4d0a6dbb9ec1@lunn.ch> 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, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 > There are MMD device 1, 3, 7 in qca8081 PHY, the PMA abilities > 10/100/1000/2500 are compliant with genphy_c45_pma_read_abilities, but the > MDIO_AN_STAT1_ABLE does not exist in MMD7.1 register. > > so the genphy_c45_pma_read_abilities can't be fully supported by qca8081 > phy, sorry for this misunderstanding. If all you are missing is MDIO_AN_STAT1_ABLE, then i assume you are missing Autoneg? So have your tried using genphy_c45_pma_read_abilities() and then just doing: linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported); with a comment explaining why. Andrew