Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6229431rwd; Mon, 19 Jun 2023 04:28:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ks1/oehe9iz8ey2dkeMQx9KysUvEC+p7PzJ+74/s0Zd4IylMGUmB8zkdLAczNME6DXBzl X-Received: by 2002:a05:6358:417:b0:127:f2f6:ef35 with SMTP id 23-20020a056358041700b00127f2f6ef35mr3319893rwd.3.1687174119594; Mon, 19 Jun 2023 04:28:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687174119; cv=pass; d=google.com; s=arc-20160816; b=np8Tou7BrU5E5fhxJBJNiV0mT6v98FcZbZ3XIqeRwctC6KjTnAaizXfGcPtvZfIjRb OaeIra6ca0DfRh4RYnl8et+55gmRVeaG1FdkdN+JyPQijmMtEGSESuiZh/AfVjDeIs63 KXeY46hDcJmVajE2OlIJi+d7+v1vkqO3Zid2nNkHIioeJ3qB2JJX3Vkr8Y3/TH4Nf0We 4fpSDJhHLvnia3H3a5zQwLe/1po8aT7QWQdOUnJD2vE3L8tGMUFnFdi9bBhhoRQjfFoQ pGrtCmC7B05Ja6drP+u+b44rPYNk1sN953JBzkSBdH2iSfljf2Gt6ikz8tqJ9bv+6x54 i/1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=d/VirKOb/VegtRN9ukliv7S7P/NBISFaazgMCrLHwbM=; b=S8JmzCBacvRJr7GyZ5Nue3yqC79637LHTrJeJW97Xtq+ZuYdrJ6+3m+DhcsVsThEbp hnTbtKLOrd7hEz+C2yTquCxxSFcWZWkrIvM/+fe/s1CKymHJ4BZyMbcAL46M/M2ZuZVs HHDltZ5/jxSf15OkfmzHooy3PhMScvQDa2C2Xhz81x+SqrURPYdf5WV1qTTFJX3tsEzj LBnX6618Ei/+DG2qiyL5+33hi1R1g+kDphnLS1bJB6/T9fWHSdrADycY2C9/9qav9Inp yOkzcayY0sQ0kE4C93BSXBBe3k9QO4gnFaCjYlpNluH6k0WyRSHyCEctdefEyQk8wIpE Zf0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=DpjYXhFn; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a638543000000b005509c8e0ac3si9046149pgd.698.2023.06.19.04.28.24; Mon, 19 Jun 2023 04:28:39 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=DpjYXhFn; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232501AbjFSLDG (ORCPT + 99 others); Mon, 19 Jun 2023 07:03:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232488AbjFSLCk (ORCPT ); Mon, 19 Jun 2023 07:02:40 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2083.outbound.protection.outlook.com [40.107.105.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD26810C3; Mon, 19 Jun 2023 04:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dR7o+6hSmlAbCaeKAxnytMC8gT6yDDwkYalKkZX+PXD5iEtzbg48EB9X1y+qzBjagpRJcZ2erp0+dPoNb0wK9TfHki8Mmy+/OoDpm3gzTVwxGlH3cS5D1NQ+M8vAn7JCCnQWOljqhBXvquR0IPnSw+teyaj766hurCRPi7wUK7cWwPvEQNir3ZkU8zBA93mNG5mOm8Wml6zhu0yQ5Uuj97AjsIFyXhk7mT4Eb3BE2jZTXvW0hbVb40tPwJcXvo63TTzmhqpQ3wAzDFSVZos2ZdlfwGEwUVz+sPmFYKos+JEmykAXm7ncCFfxXlauLaOgDIVQ7G059cWbZHQHZB2kOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d/VirKOb/VegtRN9ukliv7S7P/NBISFaazgMCrLHwbM=; b=HjzvpQWwnqJEeXWqh1SuW8W9hQ1BHHRca6J93DwJ47UNjgGzcRS6L9WwSwotX4UXZeB9CQ4jz4W6+jbRbazizbSecH2zMBAtutgaT9zGVsf6BrDkSqcTWKGGRd0j022JZtdlZqQ6RgmpV7RurwU6V8OczVsMzPDy7Fn6PNdVn+87NKBM7xvaadEdErtX45W8ZxG/DQoxAAGPMxFiUtyVhE8EwynMXpV1UsgS5WwLLZ/ldG0/V+twk/uQl/JaXKqEfpJPZqG9vTqAMoYY/ZLic1qbkP/8vNfEKitfrgTcQ/dqGnI8ib56uA1jmFDkWT9is+7UBY86FSQpYPGwwTDRwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d/VirKOb/VegtRN9ukliv7S7P/NBISFaazgMCrLHwbM=; b=DpjYXhFn9sj+zP6TL5M7FhFe8cn+QPa8CM1D9ICWosLoLopNKWdxXQ23/vglTkAsMbkU51YysleoJAaszQxBhQJlUtHDfjMs73/uDCsq2d2dky2cMcIo/Vqah9xLSD7Hhvqd7fpzZ5VcXch2TabdFKmGKTWMIWgSUb5acVVoxBA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM9PR04MB8954.eurprd04.prod.outlook.com (2603:10a6:20b:409::7) by DB9PR04MB8462.eurprd04.prod.outlook.com (2603:10a6:10:2cd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Mon, 19 Jun 2023 11:01:33 +0000 Received: from AM9PR04MB8954.eurprd04.prod.outlook.com ([fe80::5356:c79f:ef9f:dc29]) by AM9PR04MB8954.eurprd04.prod.outlook.com ([fe80::5356:c79f:ef9f:dc29%4]) with mapi id 15.20.6500.036; Mon, 19 Jun 2023 11:01:34 +0000 Message-ID: <8f172e44-3dc5-2293-8bfd-c5964ce8038a@oss.nxp.com> Date: Mon, 19 Jun 2023 14:01:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v1 06/14] net: phy: add 1000baseT1 to phy_basic_t1_features Content-Language: en-US To: Andrew Lunn 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 References: <20230616135323.98215-1-radu-nicolae.pirea@oss.nxp.com> <20230616135323.98215-7-radu-nicolae.pirea@oss.nxp.com> From: "Radu Pirea (OSS)" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR04CA0137.eurprd04.prod.outlook.com (2603:10a6:208:55::42) To AM9PR04MB8954.eurprd04.prod.outlook.com (2603:10a6:20b:409::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8954:EE_|DB9PR04MB8462:EE_ X-MS-Office365-Filtering-Correlation-Id: c5b1cd29-098b-4cec-0028-08db70b48bbc X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eBYiXhed32mA5wQi/MysrS2VZH7HjaA8UHR2Q5zbigJpjNnaOM3oRnDmz3e5fAUOwo8z6Sag8nTaVidZsZVjrqGgwahcGaCS2WsNu3xmsq9Dora1brOIAwNKS4E0Az88pRbMjxXd8ZLoF3/nJHBqj+AME34BUBr6w0XyRfrzjAJHNFNZd484Ybc3Gt17aPdKUk1L6D4A6souip2E0p4lROI8cjdG2daM2k0nRGhnHNl1be5rN0alJLffnCcZ+WrTEEtQKVeuZ7IFB0g7vXsREQV3QwHKcnMfm6ATTjP/WmMpsKw3ZI27OMkl8fruhRCz+1Yoop64rWUKwuOJ3qpCcv2nV/ONYdnapXqjKIc+eiC07V98fscfVVabU5R3o41F7otdiOcjBtMAXXLNqr5b6RR1ixqwVaJ3aZ4vyYK/wJKkaFQMv3NBzoj3xiLdeopD7UIwuz42eHQG3lGL9e5+89fj/PRlSXjhiGKPICxGTd2Xnn2YWdLWv+slP5fcL74s4MrGDHcPkw5t/lj/YwCbfS90GMWN+6o3v18Mr3AHcSVOmvWDXk3VCnxsWOWgGtmweOPXS3bZ/GCY/5/ofYHGxvsSxURTfGHNLjDGmnjXLWMSGeld2/FjRcyLD0IEC9WyzLNGIovpjmUa/p3dF1o72A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8954.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(366004)(39860400002)(376002)(136003)(451199021)(53546011)(7416002)(66946007)(8936002)(8676002)(66556008)(66476007)(26005)(186003)(6506007)(6512007)(83380400001)(31686004)(41300700001)(38100700002)(5660300002)(4326008)(6916009)(316002)(2616005)(6486002)(31696002)(478600001)(2906002)(86362001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QWxxZHIvRVdkcmczUUVLUTZkMENuUC9uYnFsazh5UnFnSGdEd0FXc2ZZdUtI?= =?utf-8?B?RUdzUXBJRlIzVlVlM3RITk1aTmpYditzQnhGNmRYOGRSdVpBWG9MRVRKak0r?= =?utf-8?B?ZGxXbWM1S2VENzBScWdyY3RiRmpKbHcvK29lVll0TDB4OFpkaXFhVnowSzVv?= =?utf-8?B?S0g4Wk5VUGowVVdvckJWWUVUSFZmSElpb2VSWUxieUVQbEEwZ0lCQU1TVjdR?= =?utf-8?B?VHlMWTlORVErS0htS0U3Q3FpcC85YzkrN2VCQlF6R2JoZEJueWVSL09DY2xZ?= =?utf-8?B?U1VranR3c0JOaStpRzJNMm5zR2RDWkVnK3RoVE1UWjJYaUxpVTFUWjZDaDNC?= =?utf-8?B?MmtjN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E44MUZTVFV6UUNF?= =?utf-8?B?WUE9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5b1cd29-098b-4cec-0028-08db70b48bbc X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8954.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 11:01:34.5838 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7ukSX0LWsdDed5Ob4N8m0I0cftAVAmQbUaNY6kuB3Iq+QFyiFRSBaTNSx35kADzuXbU/Kyr3zFfpmk+XcQmNLsXU67mc6h8FxtntLso+3zs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8462 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 16.06.2023 23:49, Andrew Lunn wrote: > Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button > > > On Fri, Jun 16, 2023 at 04:53:15PM +0300, Radu Pirea (NXP OSS) wrote: >> Add 1000baseT1 bit to phy_basic_t1_features. > > Please add an explanation why this is safe. For example, why the > RTL9000AA does not start saying it supports 1000BaseT1_Full. I added 1000BaseT1_Full to that array because all the baseT1 features are in the same array. However this is not looking right to me. For example, the output of ethtool for TJA1120 looks like this: [root@alarm ~]# ethtool end0 Settings for end0: Supported ports: [ TP ] Supported link modes: 100baseT1/Full 1000baseT1/Full 10baseT1L/Full Supported pause frame use: Symmetric Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: 100baseT1/Full 1000baseT1/Full 10baseT1L/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 Which is wrong. TJA1120 does not support 10baseT1L nor 100baseT1. We should have a phylib function that determines the features for T1 PHYs. > > Has 1000BaseT1_Full been standardised? If there a feature bit in a > register to indicate the hardware supports it? That would be the > preferred method to determine what the hardware can do. Yes, it was standardized in IEEE802.3bp and there are bits in the MMD 1 that tells you if the PHY supports 1000BaseT1. And here I am talking about BASE_T1_PMA_XTD_ABILITY(0x12).1. > > Andrew -- Radu P.