Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7914550rwd; Tue, 20 Jun 2023 07:52:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lcoyf2q4XX2MVXew+4G8GMXOO3XU068gosno+6F9iphd8I7uvDMY/vLDcd601V8QCdzgP X-Received: by 2002:a05:6808:108:b0:39e:b0f7:e7c with SMTP id b8-20020a056808010800b0039eb0f70e7cmr4053602oie.41.1687272720562; Tue, 20 Jun 2023 07:52:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687272720; cv=pass; d=google.com; s=arc-20160816; b=Lx+h0B2iq8TPPQg0XxuJmslmbo6SqKpfX7i0DY/Fown3UkUkBahxZ0Ld+w0lTeDOyW Q4Qa9miAK2YNz8yVrfOsR/w7W5s4x3Rw2uX/HiH0mH9KDBfaODFQ1W9KZL1kfDniz8zU X3EGC+edxIv1CUBfVI42QLJEsPJIJBKM3lFkwa19GVl7/3+71j8M6eZNR788QDTOmtBD dagkqH2O1JewdymwdoVhbeMmeA5AexFYL8OdislGabIGWTYFtuWGq942k7cwTqAv8Fhx 7MgsiKVS0+UrGFWdKIDpFWhOzHkPQRYORDWQYaeJPPFFSLp0zwHxKSVXXP3XOOwlGpmW RwvQ== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=ixp560HHwJZjVmiBb7xpiCt0CR1klZGMu62tDA6jDTU=; b=cYkqJqQUG3iIWyGzWqzdWQJ78025CvAFyqcH17yh9wJars+uZo4fY6NWIWF73QqPUr lGcN006ontG51JqQFUEdFCMNPeec9FiRQX1sK02S0bjLEmHyYwOJhyc4ytucPG9X2R3y pu6LJdqdpEhdq++HoYTePjpC2f6ljubSI8xd+h5bQL9UPpDtK9CbZRQ4h3XzlSYAxCgO rrOBa3BapZhDdYRnOrKLV8ilAwXIwn+DQQkhBx4m2uoWoko6Z6ylaOxMIqPb7OdnmwGJ 0J5N1jsWMMTYI/9DC1hx6hJBGOBON2lOIi0csYbCOAexjoS03sn3YMJ7qKZuWsJU+ZfB oqFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=SzcNELvY; 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 h15-20020a17090a130f00b0025bf45ac365si9630774pja.82.2023.06.20.07.51.40; Tue, 20 Jun 2023 07:52:00 -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=SzcNELvY; 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 S232718AbjFTObX (ORCPT + 99 others); Tue, 20 Jun 2023 10:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjFTObW (ORCPT ); Tue, 20 Jun 2023 10:31:22 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2079.outbound.protection.outlook.com [40.107.22.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 623F3E60; Tue, 20 Jun 2023 07:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mb9ZHmJTCedZjEtknjQjEV5JCTd2eyFmA6aL5KZK3XPWqyP9rCxhskDyMZt2EPSZztJnE0YqeFtMNC3U/cFyWu+yiIuDdQb2XuoHf4Pf7Xt/ecAcTjJU/QV8YhBdISXTyCtQs+AmMw/dRNdIUl/NNdTiYAO1LNtZc9pRqFBaTrxKk7+OrBXx8CLYMqURquJmHzBqk5W4+pcGsZZVUbBzn8zH2Z6BdmezL5uR92QZXP/EVsXo+OCSmwOMp5HGoAALhCWfSIu1UjDZFBbiTDEzYExeV5cSNdB3/bxnFLBLXUukUcGVbGm43RKnIAyrBOx2DWAA6e651C3bhIRk/zdq8Q== 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=ixp560HHwJZjVmiBb7xpiCt0CR1klZGMu62tDA6jDTU=; b=LUf3GUVFwSzJMweyb0Lw7cNg7jAQvTIjC9fmaeIdy0IZoVE+Pk2ygJvNThWRM0BDCd75VDIYn4h6sgoxh2ivTaMYMBd2WLWQr6LavT7qe0pbLha/Dy+thjSxXORZGx0rEg+Dkne3OkFMA5WFK9Vp+62l0XajnMVNnxWBgFSeFIHXztMHEqwTJtb6g8+RPE4URCQMgv225Ei09qFwMpenPBrLwqEUtH8htyLkUr0gDZF/bqb5bU2Pg9Xih/XKHAOmyrStok+lezS+tMf3QNNJvDUJ5mxD+Ul+fGti27BoOuW0bwuaZW0ZguTYphBazQIu+Hcz+6OTtEeiBKYTVx5YTg== 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=ixp560HHwJZjVmiBb7xpiCt0CR1klZGMu62tDA6jDTU=; b=SzcNELvYFA3UCaf/gW9YuuyfmTuGw/CdMRQFLc7VpiLC4oRjLVTHc5czem6hAFsM6p3TxIHY2z3TVcJzxOkdi/JvQt3ChAEMQqnjonf14VZZ3C2UMi+AZZuMLPCLle7La1lBJ1iVawDEqVIeBN84jIoIhjlQFGibS0kaMBMByqM= 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 AS8PR04MB8676.eurprd04.prod.outlook.com (2603:10a6:20b:42b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Tue, 20 Jun 2023 14:31:17 +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; Tue, 20 Jun 2023 14:31:17 +0000 Message-ID: Date: Tue, 20 Jun 2023 17:31:13 +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 12/14] net: phy: nxp-c45-tja11xx: read ext trig ts TJA1120 To: Horatiu Vultur Cc: andrew@lunn.ch, 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-13-radu-nicolae.pirea@oss.nxp.com> <20230619084941.q6c26zhf4ssnseiu@soft-dev3-1> <1052d020-6866-f1a2-2b59-bec88ff00271@oss.nxp.com> <20230619104813.tiodielj7faw557s@soft-dev3-1> Content-Language: en-US From: "Radu Pirea (OSS)" In-Reply-To: <20230619104813.tiodielj7faw557s@soft-dev3-1> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1P190CA0032.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::45) 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_|AS8PR04MB8676:EE_ X-MS-Office365-Filtering-Correlation-Id: 6161aa3d-40ad-4c09-e026-08db719b01f3 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: dEJChRvHC71N+FcY3//G341XO+iwf+KDIf82Mmq6cNYWes3sExY3qiTna7ggSRDo5qlgV6VvamjQ0FesxaCFAkNm6zl3iKye9+isKqvEDDwPU357hruOJ5l+T2YAxMla8JepgW4ZV17Pd+gIHiZsH49asRxfjuqdRHrf7z4w0whlbpot2hrpHPF4P12xJCmYh/d8322MFpqM+sXiJE9t0uaPSgtXfTiJdSXh7lGiiLQq5Qjih0HDoxvHDbXiH/cAVhRhd0L+JwyzVsgkRJeVJ2dKYeaaDaOkLN9sAsefIMu2I+7ZTOG8rJhCVFprAtq901kNrlDGN7giCw2usxAKwIqWEoqzrpYhj7dh/ZTxmFdDNDZqNhEe4Q9hS0tT2qjwUNBj4Em12mquinEgqJHU8EwuOAJKyXCcoIfTcAFCs4BOZzjro5wAvTCBeYmuuk63u4mNm1J6xtUmLtNxPjdN/T91qzp3GDK3CnOaZXVpU+LvDblHaSZt8Q3GEZeRBe6cYJcsjQKP6e3FkswpEA7TUmAmkCun6MI0sYrY+rByFHWk8qVzJOawDK88IN0bmMRrjF0r0lMRzqczd2vcHQ4f02zHJgRWZn3g43JIksw8w3ek7FpMc61L1DUkOSFyp5PjokBbvxpAsYc5wfuvm/TGkA== 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)(39860400002)(366004)(376002)(396003)(346002)(136003)(451199021)(8936002)(41300700001)(8676002)(478600001)(38100700002)(6506007)(83380400001)(2616005)(6666004)(6512007)(26005)(53546011)(186003)(6486002)(86362001)(31696002)(316002)(4326008)(66946007)(6916009)(66476007)(66556008)(31686004)(5660300002)(4744005)(7416002)(2906002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NzI5dnhNNHJQK1lwUGNRdlZMS0NrNURmaGVJYnZUTndjRG9YMlZuQk0xeEhi?= =?utf-8?B?RGNLb0xKMGVwcUtsWm9LZzFpZ2pMSWhkSXZVSkNiWmNRNkFQK0tjOWVsNlJD?= =?utf-8?B?c2NIWVZEZi9ua0ZVSWhOa3pEWTk2bzRoZTVEVjc1VnN3SVJuY3JLWGN2TDBI?= =?utf-8?B?dzRpWWJhblVTQk9vM3RWWkFIZld2ZW1UdVpuUHgveFlJTmd6ZHloY0JIb3VK?= =?utf-8?B?V29kTlZEYStVRU9lNXRjbWQ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qS2V0VXpuRnVBWERuY0dj?= =?utf-8?B?d1drYkNKNlhEMTY1N1BOZHNCY0FxeWFUTVRhdjhoMUc1bFlpQ2lmM1hXMnIr?= =?utf-8?B?M2Rody9CeUJ0NnhQT2hWNE02dWx1eWVVc1ZVVHpEL2ZJcnZ6RUhKM2E5MkQv?= =?utf-8?B?NlE9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6161aa3d-40ad-4c09-e026-08db719b01f3 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8954.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 14:31:17.3121 (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: pobuvgqihgELNAIdKNXElFOoYnKapXoZrN+hO7T6GlSCCR5Ed0R7JfZHZa5dODqI4U1fYIdfhqo/d1IkV9Nww28x6TyY3CO1Wk7qjOwFMA4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8676 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 19.06.2023 13:48, Horatiu Vultur 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 > > > The 06/19/2023 13:07, Radu Pirea (OSS) wrote: >> >> On 19.06.2023 11:49, Horatiu Vultur wrote: >>> The data->get_extts can't be null. So I don't think you need this check. >> >> I kinda agree with this because _I wrote the driver and I know what it >> does_, but on the other hand don't want to fight with any static analyzer. > > Yes, but then wouldn't be an issue with the static analyzer tools that > can't detect this kind of code? You are right. I will remove the checks. They are useless in the end. A check of private data will be introduced only if a future PHY needs it. Thank you. > >> >>> >>> -- >>> /Horatiu >> >> -- >> Radu P. > > -- > /Horatiu -- Radu P.