Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5331045rwr; Mon, 24 Apr 2023 02:24:55 -0700 (PDT) X-Google-Smtp-Source: AKy350Z6LDRGH08FnZ8n34mAhi/anNO+XYehc37eHw6HvSCXqYfOvTtzIKZj8/3qEvDOz8mSo/RA X-Received: by 2002:a05:6a00:1a14:b0:63d:2d7d:b6f2 with SMTP id g20-20020a056a001a1400b0063d2d7db6f2mr17287090pfv.4.1682328295185; Mon, 24 Apr 2023 02:24:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682328295; cv=pass; d=google.com; s=arc-20160816; b=aJaTMFc0h81RpWqgU/4MLm426yZ5lks66R3Hj5vYIKrCow2PDmDDUzPhuSnWiw3L66 9EiHqt3FcgvgtK04DBtJLIy0cHOMP/SL5hJvP+sJ8kY5Vb1zx6NsTjaR0DBNof6Mf0yd QHeOhCz2JNrcP/H+lF5xKI+fuW0FvVVOPJlVF+iupcTdWcmmyP7B+0vP30JoLEFdOM92 a6YqgNiuxLwEKtA/1Y2uHf3JALdmB4VSpxkqEAOA6C2/Q2XBOTlcgu7Y03IRosxglbiR j63aswqd0gyY+Xqh3ngiZgCLKYc7Eng1d2sA3Yzrvj15ADLppDc5GcF2/V86AIHH5IlE NP5g== 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=21NYWqkEXlbpbr7MP36GrSSTQG7dc1xB15Tp85wWJgk=; b=rc/Soy5cYLLnzKL3cqacYkJTWQpEZlnn5B2gbv85WEH/yEyb8m9Rfay8xS4C/r+dzg 4AayAbVV3BDOAuNdRRiyMggXVsEhwQ2VwhgbRGa/+ryu2M+UAyK9/gFvnLu9bbOYZ7jU 50rEs5UiwF5dF28qRq+QQWn3KKa09LNOTPcaDyV2MPz2Hh9qEVhlc2f8elggnhXMPRV9 YV1hkwzoJ9WaUPuYz4JXGpAmRrLn0S5qihmAE7hzwUfcHHCwAhGH1Q9NlxXauO/CrE5H ZJ60eSgh50oWjZHW/s9NDeb1uiS/vNq9xuX2FqjZEAOIl+q4+lOGOF8gdW0OE/5IHJ0U YKjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="B/dJHbPg"; 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 c22-20020aa79536000000b0063b7790fde1si10459453pfp.284.2023.04.24.02.24.44; Mon, 24 Apr 2023 02:24:55 -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="B/dJHbPg"; 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 S231453AbjDXJI5 (ORCPT + 99 others); Mon, 24 Apr 2023 05:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbjDXJIz (ORCPT ); Mon, 24 Apr 2023 05:08:55 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2061.outbound.protection.outlook.com [40.107.21.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C5010CC; Mon, 24 Apr 2023 02:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eKH5ipW8d6zt2k2yj7PpbzPLSBWcX38h2QVSe8AgDqtmDXY/8hswSTubP+M5AcWBjMWsBlsFiBh2Fa+wkjZzyBN2pRRUf64smQDB+gLVPu5+ucWGfStD4bJ4TO0OP2ka4VfjQEEKZbNVX9exE9rvFo1ynCTvlidTFr4CE4wbcfNnE+K6NqGbEdXIJDgZ1bk1zwDSVrnUYsN8rPjWuaDq1KEBxnbg72T7FcAlXq6zSR0c3XzbE/41JNDRGiaHydMRzk1Q1Q9cBW9aDLUnzqH+s5K1C/1wxz5F3fzM7Azj1rUBTgmLMqqwlWjg/vBpT4oqMj/odHVhUQYh0OEgdQopDQ== 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=21NYWqkEXlbpbr7MP36GrSSTQG7dc1xB15Tp85wWJgk=; b=Vvp+pKWEDdqbDV6+1lcxYKJxmmnpLj+AYakMJyH/e6E1M4Li3RCZbVm4UTIOEoOI4aWpcTiGPHd5q/YD9ilpEnh8wtMPBIJ5mLLiGVWL8G+wCViurqB3CaRuGiQw90lj/sy/oM3Ey2LEqcTzM4BC0Xa8J56rIsUxAgXbLReye4m5m620o6DH74/uAgCuUAILlbZN/TlgaHvamoKj+bNQRW8JXEadfaXzT7Hfk9vePmgI0t6kwYsbBSxUU6huHe2BrLAFNr6HzrammR8FOv83IMjEqb9meyf2NJgUspza4ed6bMmnjq+dkdh+/2Vfgfzvu4M7bF+KMCyKW6CPzvNZfg== 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=21NYWqkEXlbpbr7MP36GrSSTQG7dc1xB15Tp85wWJgk=; b=B/dJHbPgfTI9v2orSYI4oQ/wVF+IOnbLnc0i0gB5yGJ15i0NPv9xjK0yp3QXFsegiA1d/Kv1wbj3UxXaepnP0Afa6zVdRHNaaTQG5kuwKNVc7NgpE4Y+iZ5ku0ZOMYZPhv2Ed//Yg9rKzw3uVXUwyRK9gfBWwjoaQEPTviFmVjQ= 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 DBAPR04MB7334.eurprd04.prod.outlook.com (2603:10a6:10:1aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Mon, 24 Apr 2023 09:08:50 +0000 Received: from AM9PR04MB8954.eurprd04.prod.outlook.com ([fe80::1d1e:26f6:2cc6:a9be]) by AM9PR04MB8954.eurprd04.prod.outlook.com ([fe80::1d1e:26f6:2cc6:a9be%3]) with mapi id 15.20.6319.033; Mon, 24 Apr 2023 09:08:50 +0000 Message-ID: <36cab8c2-1901-a263-a7db-b7de486bfbeb@oss.nxp.com> Date: Mon, 24 Apr 2023 12:08:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH net] net: phy: nxp-c45-tja11xx: fix the PTP interrupt enabling/disabling To: Jakub Kicinski Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20230410124856.287753-1-radu-nicolae.pirea@oss.nxp.com> <20230412204414.72e89e5b@kernel.org> Content-Language: en-US From: "Radu Pirea (OSS)" In-Reply-To: <20230412204414.72e89e5b@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR08CA0190.eurprd08.prod.outlook.com (2603:10a6:800:d2::20) 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_|DBAPR04MB7334:EE_ X-MS-Office365-Filtering-Correlation-Id: d731e1d4-0649-4872-5cff-08db44a384a8 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: vD549C6DiiMCsWkqmSvh4H0uQupJ6Srv7RezD+qNazubvizxuJrdYHqAApmFEBZ04M1GU11DZ7E2757mzQ0uTrO2/BZMz3CRAGR4Xh9UpB/CBPDqjo6NOnWAYOw5NMueJ+YlhAULnOGRFBFIHonsQYvMmDF8nI3IdLFidJxz1/9tkKGosKeSLMXrZ5Ijlos/nYfsiGZpN+BqBpZ2qfVHmcvYuL9Z/ygV5vbGN2sDnuJMuLe3kLAynQV77+BiaoC/zDIz8bh3K5jRSNb8jiShSgjyD0owcjo5j6MIfzTo5NQsMSXGZlShUH9Jsz0t2ZavvxSl7WsrnFNz/eY2tdocpQ5NZSk5UBMgCR3EK0hBS84SMs+JGHYNkaN+9/FOJ7/al+1fmN5UOzFSu5vtFlFvmuyA647DUdPGJvdghdax7GUyNU0HSAu9TqTVESFgjUGKhVEw56mk2TWoBY9RiHSP+PotLntmlszk8QX9IRCStPhSqZBFTotWokc6iw0EUNuUSZPNCMhfBIRDcjhb11pUdqEY0WVNIt3Mj9qmcVCgbC9KHmTc4PD+8E1b9GwJdPzJ4nuwYgMQwF6gwlACSJxZK+qWcudRUEjBJnqdswn2QjPHqYXiuckxrSYxgDqLW9tJ04CqjrVvWMo859xABtWbrw== 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)(136003)(39860400002)(376002)(366004)(346002)(451199021)(53546011)(6506007)(26005)(6512007)(2616005)(83380400001)(186003)(38100700002)(66946007)(31696002)(478600001)(86362001)(6916009)(66556008)(66476007)(31686004)(8936002)(8676002)(7416002)(5660300002)(6486002)(41300700001)(4744005)(2906002)(4326008)(6666004)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a2V4Z1g4dkVPNVlBRk4yd3oweHAyMmwwUWNLUFIzbjYwTzNlWGt3ZlNkVG1m?= =?utf-8?B?dGM1THllKzFGRThDTG1TVnFpVmFDZ0xXSElFVlZmd1NwNTRpREEzSnpaelVZ?= =?utf-8?B?NmVBelgxS2ExQTFnWEVySjRTWU9HV25FT1hUN3RRK2pHYTA2eTJrRFRma3kr?= =?utf-8?B?bGhrK2psTWNkMjBQVFVhSmo2MkhVc0lDSkkxdW43bEpFb0NzSVFxVWFLZHNL?= =?utf-8?B?NWdiZUxTVFBDZzZBT1NpQ3BGL1RWN2w5eDB0YmIrSUFYVi9id0NveWNrTmZj?= =?utf-8?B?RnhiTGJFa0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GZPTFRIeDlNWnIx?= =?utf-8?B?TUR1WlBURXQrcmJobHNNWk9KWXlXdWZNbzhoZmFnQVFlSFJXcjJxaDFUbWdJ?= =?utf-8?B?Ymc9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d731e1d4-0649-4872-5cff-08db44a384a8 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8954.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2023 09:08:50.4118 (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: y907ANUZdXQ7ov6t6ZzDciTWaNIjMtuiHu5i/EAehi1KxUxmyCsIB2E7cYFVO+hfKarPOXf1X/F7yPWnaNptGxlvQQ/r5vM5aU45XdlWLdc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7334 X-Spam-Status: No, score=-3.1 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 13.04.2023 06:44, Jakub Kicinski wrote: > On Mon, 10 Apr 2023 15:48:56 +0300 Radu Pirea (OSS) wrote: >> - if (phydev->interrupts == PHY_INTERRUPT_ENABLED) >> + if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { >> + phy_set_bits_mmd(phydev, MDIO_MMD_VEND1, PTP_IRQS, PTP_IRQS); > > Isn't the third argument supposed to be the address? > Am I missing something or this patch was no tested properly? Yes, you are right. Thank you for this catch. I discovered this fix based on a driver code review and it did not trigger any issues. I just wanted to be sure if the PTP irqs are left in an inconsistent state, they are disabled from the kill switch. I will send a v2. > > Also why ignore the return value? This register might not be present on every PHY, that's why the return value is ignored. Radu P. [...]