Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14136785rwd; Sat, 24 Jun 2023 12:52:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jmh37zfc7Qn4ZVkuz5AKrIQ4+TWk1WeoztRCTtradEq6X7Z87y+nAW61Y1bUxq66LiGWE X-Received: by 2002:a05:6a20:6a2b:b0:10f:1d33:d667 with SMTP id p43-20020a056a206a2b00b0010f1d33d667mr31300639pzk.5.1687636351424; Sat, 24 Jun 2023 12:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687636351; cv=none; d=google.com; s=arc-20160816; b=jkD2MGrbBwDT0xFCdQVSWB9ICsDylbnX9bxca7a/7NV+3e6UgEm4vubQCnCw5fBf2M YzWqNuP1AaAjfKzWJrkKZK/D9HhuGPaa0d0i0NlBN9EwwbMRTPWK2UOXM3Ygcbd1CCJz x82EMisyvNPMLPlS39EkXWe2KfBZFmJ2WX3IngXoVBS4BnUtV5RdWcpw5z5Z4BZWfQWx qJm38tXEc6kNJIlJ9cKUdszzE5jAuvvHTM8u2DOWf0Dd0f3GuioqNUFB6TcXhyXXSuSn EEL1l9m0tR63V13DKQhyegOQ5QrS3RoKNjVWb4fD8cGfpibbkasvNwk21we2FmvXz9cS g1rg== 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=UnhCsxti4Kmc4ZZZ2TxRZ9Y2VLPFx3yNPFmbrJP3yBQ=; fh=pQT3CYg6NGm3OzlWz47XpmqT+Rf32i+H2zP2iKfEdLA=; b=XHUV21bb+tgZfjEoSTsrrsEzMG7cfAgx+u/DHhLfmC6H3dEM18IWTOGhhNvNq/hApU u+1Lu9S5/tlU8LouQ7pr/HVlfFNB+53wSMPbPPJisAFBcGhfoP0uDJPCs+QiFdwree4Y YagC7YgxiRSZnBDjR4veDADR2QBIsxZ8vGIL5yJBWEQgKZ8iwJD76VSOopMAKHlLmgOY LbrdH5KjKDgAoSSoV/yhbjn2yMPXsujwE5FsOp28gk7h4Jkbhg1cE2CwKxiIgrFfj7ef QF2BaMHKILYGD12GfroDUOX6ajv6lzoPp+uP5zX37qddcHe14Xl5iYrO3PgRINSxgexj O2xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Law8fp0e; 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 76-20020a63004f000000b005348885119asi2125480pga.523.2023.06.24.12.52.16; Sat, 24 Jun 2023 12:52:31 -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=Law8fp0e; 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 S233160AbjFXT0q (ORCPT + 99 others); Sat, 24 Jun 2023 15:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjFXT0o (ORCPT ); Sat, 24 Jun 2023 15:26:44 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F07EA; Sat, 24 Jun 2023 12:26:43 -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=UnhCsxti4Kmc4ZZZ2TxRZ9Y2VLPFx3yNPFmbrJP3yBQ=; b=Law8fp0efH0cWdGx0CzpWd4o5j EL7+q7d6IFAG6eynHh8yfj09hFjLHG0du9uxL0ZRiSf/hazwTO132dgYLiZ6uw22Ge2jgJ2WlgYHC +4gXFzUjdC73+uFoJDHrfUnktrgIIC2u93uNBXLek1jW5XNNxfnK8USV7/aYc6vz/Hys=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qD8u0-00HRZF-1T; Sat, 24 Jun 2023 21:26:32 +0200 Date: Sat, 24 Jun 2023 21:26:32 +0200 From: Andrew Lunn To: "Radu Pirea (NXP OSS)" Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sebastian.tobuschat@nxp.com Subject: Re: [PATCH v2 06/13] net: phy: nxp-c45-tja11xx: use get_features Message-ID: <6655fb6a-0b28-4eb7-a5f1-9a74be3318e3@lunn.ch> References: <20230623074123.152931-1-radu-nicolae.pirea@oss.nxp.com> <20230623074123.152931-7-radu-nicolae.pirea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230623074123.152931-7-radu-nicolae.pirea@oss.nxp.com> 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 On Fri, Jun 23, 2023 at 10:41:16AM +0300, Radu Pirea (NXP OSS) wrote: > PHY_BASIC_T1_FEATURES are not the right features supported by TJA1103 > anymore. > For example ethtool reports: > [root@alarm ~]# ethtool end0 > Settings for end0: > Supported ports: [ TP ] > Supported link modes: 100baseT1/Full > 10baseT1L/Full > > 10baseT1L/Full is not supported by TJA1103 and supported ports list is > not completed. The PHY also have a MII port. > > genphy_c45_pma_read_abilities implementation can detect the PHY features > and they look like this. > [root@alarm ~]# ethtool end0 > Settings for end0: > Supported ports: [ TP MII ] > Supported link modes: 100baseT1/Full > Supported pause frame use: Symmetric > Supports auto-negotiation: No > Supported FEC modes: Not reported > Advertised link modes: 100baseT1/Full > Advertised pause frame use: Symmetric > Advertised auto-negotiation: No > Advertised FEC modes: Not reported > Speed: 100Mb/s > Duplex: Full > Auto-negotiation: off > master-slave cfg: forced master > master-slave status: master > Port: Twisted Pair > PHYAD: 1 > Transceiver: external > MDI-X: Unknown > Supports Wake-on: g > Wake-on: d > Link detected: yes > SQI: 7/7 > > Signed-off-by: Radu Pirea (NXP OSS) Reviewed-by: Andrew Lunn Andrew