From patchwork Thu Mar 30 05:08:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 7431 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp883768vqo; Wed, 29 Mar 2023 22:17:19 -0700 (PDT) X-Google-Smtp-Source: AKy350Z3fvzuyzkBmd3DMxSuUc5d4VEXA4ywx+QZTfwPuvspJP86cQ/mauyYDY/ke4RTXxrJN9kN X-Received: by 2002:a17:90a:c086:b0:23a:6d16:8e36 with SMTP id o6-20020a17090ac08600b0023a6d168e36mr4748042pjs.12.1680153439008; Wed, 29 Mar 2023 22:17:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680153438; cv=pass; d=google.com; s=arc-20160816; b=G8/7bevUYINKPBFIZZxbCHgKqOiJYIdqqF3DtdyK3R/asue+wJtboJ6boaIIC8L2Y9 QayzccwKvBpEFOTsM9v3bNtW3JjylB7g3AZjBtz35voB6POaznm81eL02gT2s2FhKrsR oeLAtEsjGvYZAvHZsNhVk15/sRImFM5P3DfkRTsySXsq8KlA7I7jsXvKj4+5KLQ0oeM2 x1vVdpxf3ISonlfH7+K+/guimIW1mQsY5dgIdwC6qtT+Lapo0Z/tLrSNAwAPrXcdxc/V iIbliVd6Ml4tC0oOYt8RWi9kH4UjDt+AjKpb8RH7M02zTTEbbGEPlCF9dEcXo6SybFPn k/8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=ERyANljwrDtE/ai6V8lRLBft6yb2HuRD48xFT53iwYQ=; b=LdmNdK58fM9NRcwvaztG3HpJSVqdSH2se1H0dQcAGYlpRin8wvNMKFOkxyL3RS9S3b ye9NIodttYc8SGVLQX8kNVL0WjbcSHUqtBOcL5Im7UrFISIzlGzMNyQugTN2U9yR5kVA DcLKRtEQqYXnaYIwOue+iIVpJHkTNwKn63iOfyn3QwWRcYwI1adHRgk1EJOhvYxi1gRv CqoI7iBy0B/tco40NyrfPTb/1FASiD+IlUoMhEN5OmGkjOLO977cFQ4lW0ZKisVmID/8 Fny69UuVKyC5kiCwmyRbdaiEAxh08fCnMDob6UMIAl+7/SHvRB6uqEYWhCrzrwPJpJ71 Ho/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=UOcD44Qv; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl5-20020a17090b384500b0023d05a9b16fsi3319633pjb.165.2023.03.29.22.17.05; Wed, 29 Mar 2023 22:17:18 -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=@amd.com header.s=selector1 header.b=UOcD44Qv; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbjC3FIX (ORCPT + 99 others); Thu, 30 Mar 2023 01:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjC3FIW (ORCPT ); Thu, 30 Mar 2023 01:08:22 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2087.outbound.protection.outlook.com [40.107.237.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB424C35; Wed, 29 Mar 2023 22:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YjbuUiQt2PDggD2THk2me79ZXWK93KVA9Rn8qR7DerqcL+HSBFfdn4EoZkOncYIKPSY8BqaZ/wiGufpXIRMgdqE3oUTsy8KQI884+5DZlfBLdsw+f12X47bwH5X0du9wo/BRdATmVkrmGjAXkl+UrwNp+lct5ZQ83lbLuh3Old6s+HFTFEqcdwR2ptytUXAZ1qpPcHqwCoVsjlAO+ZOXoJrpkVe58O4MH0HMRu9O9ItP07+e2aeBvpMdRlsEkKlxxapHfj+VFef7Sk2DvFUwkoMwbRl63Afbm5elA/lTK2hORMGhZ6+bnsxvnAovJ/JF2h7cFyJkAxK0GX55M3AHIg== 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=ERyANljwrDtE/ai6V8lRLBft6yb2HuRD48xFT53iwYQ=; b=mBJBVjtXsFK9tRjOmp22ID1FiF7ZAGdix+XgiXxisWCnHp7Bld/CfsXWAl/xwEAe6d+ntLI0ICYcxHSCFqzHIhG1qyPHviQEhUjpoP79Jzjkai8Q9kK7Z4BAYVMoIEGwHy4uALj6b6SiHy03jmOWFC6kVJ7aApiIcsOaa3IedO/su+BZkTLmJnnn6np+I/cszqsiUNustWjeFpHwdSuJkm/gZdTYtzOwnzEE/5P4Zk3y2/ctUwliypGhcUrlKkovk1exiHMaEc9y3c0RAoPqH7R4PdBvJhkYiBDvuA91fLaeh2D9QG+KOSIBqlDiHk4GXnIMnEJxZMeQPc/4Pg39Gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=microchip.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ERyANljwrDtE/ai6V8lRLBft6yb2HuRD48xFT53iwYQ=; b=UOcD44QvoPmAHOXtDTzm78jssXu+6lbTyW3UzmcYiCd0T6PqCVDwezQWp4V7hWG1TzUnHFIhCY1pyyO7VOR8W36wmWrrYGa/ZlOZ5piVZ3fvRfbCWDp4M0cDIowvXds6ln+YT5ucLhW9iiDHJ64giXnip+3GR3T2qm4cbn3xBN8= Received: from MW4PR02CA0008.namprd02.prod.outlook.com (2603:10b6:303:16d::27) by DM4PR12MB7766.namprd12.prod.outlook.com (2603:10b6:8:101::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.35; Thu, 30 Mar 2023 05:08:18 +0000 Received: from CO1NAM11FT041.eop-nam11.prod.protection.outlook.com (2603:10b6:303:16d:cafe::ef) by MW4PR02CA0008.outlook.office365.com (2603:10b6:303:16d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.20 via Frontend Transport; Thu, 30 Mar 2023 05:08:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT041.mail.protection.outlook.com (10.13.174.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6254.21 via Frontend Transport; Thu, 30 Mar 2023 05:08:18 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 30 Mar 2023 00:08:14 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 29 Mar 2023 22:08:13 -0700 Received: from xhdharinik40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 30 Mar 2023 00:08:10 -0500 From: Harini Katakam To: , , , , , , , CC: , , , , Subject: [PATCH net-next v4 0/3] Macb PTP minor updates Date: Thu, 30 Mar 2023 10:38:06 +0530 Message-ID: <20230330050809.19180-1-harini.katakam@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT041:EE_|DM4PR12MB7766:EE_ X-MS-Office365-Filtering-Correlation-Id: 2173cab3-ca11-4531-8c66-08db30dcc699 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aM85TFWMCfURRYzoOZg21Q1/ztroCzB7wUr1UjDqZQqGE9dI4901Dd89lfwYpZ4TFgMUQiSGSLF38baGvLwTumtQ+Tvpfw3WSzADmtsx6Uj5YqmvxPedn8jFWtzPYPxeE7JeSBPT9EFZqhO0+6tyBeL81YnFPTdh+sg26VpA2MBk7PgBJnzHMGPxcYNJKmCPZlcCD6nnwJatdIS6Ypnp4mxkfBpQhSl09VliSBEZCrUlD0nhIiYiia8OPcFIVAlUUMP2TDH7Z67IDwZ9qGOMn9HX7bkAjxs8sVhvQJhQlaQFKz+hXsVyrLCGL40mNoQEJwUeWH45jCzJgSASxhlOxWp7v9/v3Erhl1ajBOA4O5WNSJAt8t1nr+wUVGCW8Alj0euNxeJ2H6ZmnY/G5xNAlhBZ0fKJfVCa0qj1nP7TYeqq3+p2+2XKkcyqtjTuNo8Ujha0ItGrATjVQ5tRzzY2irvIIziMDm0aoB9WB02m5VtCJbsaURVdN0STwpjWXF2Ud+l+rEYyDd/VEQ9sF0x4LZql0OQMcote69zWINQA1X92P6i5XFqaz3TLSzyMXnrJNlLQIs5vEOI7q+bVWk3xX2I7QCDjLDyBmAj2tRmuzi06pNpxJZwRQlfv4KrkXiKvly9WEq01hKH3G72/kjMOHt9o2lQ7W3CTR+zLCj3c7T2kkpGRicji94niRnww43/Mu8wleCbliHGRVmLSxrsh6nus3jE/DbfE8uWL6/Lv2M8= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(39860400002)(396003)(376002)(451199021)(46966006)(36840700001)(40470700004)(2906002)(4744005)(15650500001)(2616005)(426003)(83380400001)(44832011)(336012)(40460700003)(478600001)(7416002)(5660300002)(6666004)(8936002)(41300700001)(36756003)(70206006)(54906003)(4326008)(316002)(8676002)(70586007)(110136005)(86362001)(82310400005)(81166007)(1076003)(356005)(47076005)(26005)(40480700001)(186003)(36860700001)(82740400003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2023 05:08:18.4384 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2173cab3-ca11-4531-8c66-08db30dcc699 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT041.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7766 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761768572190929983?= X-GMAIL-MSGID: =?utf-8?q?1761768572190929983?= - Enable PTP unicast - Optimize HW timestamp reading v4: Fix kernel test robot error; use static check for CONFIG_MACB_USE_HWTSTAMP where necessary. v3: Add patch to move CONFIG_MACB_USE_HWTSTAMP check into gem_has_ptp v2: - Handle unicast setting with one register R/W operation - Update HW timestamp logic to remove sec_rollover variable - Removed Richard Cochran's ACK as patch 2/2 changed Harini Katakam (3): net: macb: Update gem PTP support check net: macb: Enable PTP unicast net: macb: Optimize reading HW timestamp drivers/net/ethernet/cadence/macb.h | 6 +++++- drivers/net/ethernet/cadence/macb_main.c | 17 +++++++++++++---- drivers/net/ethernet/cadence/macb_ptp.c | 4 ++-- 3 files changed, 20 insertions(+), 7 deletions(-)