From patchwork Thu Jul 18 10:52:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Temerkhanov X-Patchwork-Id: 1962071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=QpMRouvw; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WPqSW14Tgz1xrQ for ; Thu, 18 Jul 2024 20:54:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B0F1840230; Thu, 18 Jul 2024 10:54:32 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id y4jVkd-sebiA; Thu, 18 Jul 2024 10:54:31 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A40A040267 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1721300071; bh=RCyJflpE2wEjhpOsmrC24ssghsAtOz7sibiaFDjOdj0=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=QpMRouvwxRjxxApZdUfaHUZToWVNDJAPyhSuWpFstEz7WFtzFTMTjTdVOojomHenz WM6cVJThoZOQ1Dy54UXffHyIQw91+thJPyqPy+bCU4OrnXOiwXhRfgDYrMjN6d2MLd dRYLGD+D0hiuviIHhf+YFt2/1kTCSCWAUEkdV4fMD8IJHQ7lVpTkqPYb6TxJHP7n8e xmhXK26l1zphabZ2ek3ZogGtGEjLvBLp6/Z3f5+pWQue1++cWoNwbMwEKp7IMctNaq 3DXNNr8s2ad11lpsTTqZUXQ10o0O45GsNEhh+9H56VzNstL7GWTZ9VM8XPrkL2EmH7 XEdQJlxMXsXwQ== Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id A40A040267; Thu, 18 Jul 2024 10:54:31 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 866C41BF371 for ; Thu, 18 Jul 2024 10:54:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 68CAF4007D for ; Thu, 18 Jul 2024 10:54:29 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id DtNZ-M0hk7rq for ; Thu, 18 Jul 2024 10:54:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=198.175.65.16; helo=mgamail.intel.com; envelope-from=sergey.temerkhanov@intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org 0D4A1402C9 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0D4A1402C9 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by smtp4.osuosl.org (Postfix) with ESMTPS id 0D4A1402C9 for ; Thu, 18 Jul 2024 10:54:27 +0000 (UTC) X-CSE-ConnectionGUID: ROHS2DS9Q7C4p6PXyrmYbA== X-CSE-MsgGUID: 3AE5gOHSSxiQDWQnaPH7vQ== X-IronPort-AV: E=McAfee;i="6700,10204,11136"; a="18987482" X-IronPort-AV: E=Sophos;i="6.09,217,1716274800"; d="scan'208";a="18987482" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2024 03:54:27 -0700 X-CSE-ConnectionGUID: /MZsoTwtQdmNcd/fADbQBA== X-CSE-MsgGUID: IsRPWmyeRlCsR3GuQFQ4Tw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,217,1716274800"; d="scan'208";a="50774567" Received: from unknown (HELO localhost.igk.intel.com) ([10.211.13.141]) by orviesa009.jf.intel.com with ESMTP; 18 Jul 2024 03:54:26 -0700 From: Sergey Temerkhanov To: intel-wired-lan@lists.osuosl.org Date: Thu, 18 Jul 2024 12:52:48 +0200 Message-ID: <20240718105253.72997-1-sergey.temerkhanov@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721300068; x=1752836068; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sxMWnGOzRQceGXp+LR0DnSHdV1N4rJK5zGv22/Wt+58=; b=Co1iXIZXVyGTN8z54Gh8nH3ddEYmQcxdC08daz5nFrSeYBnNoHkmfQaM 1dsSr4FuFWpvms6buWqHDc/eAVSyfe/jt0ngolrFl5QaIZasDG90gUBG0 RYauKG9MJskA0nsrsRjGuvIUFCma0JqPWVCU4g38309MIQQIgZRBWKpFC u9w2LkZhm85a93C9/jzYtjfK7Gl3+8PbWpnWV6deVR4+dN4IU/u6jGbmR 9s+Ec/W6orqFyTF/2IT609GH5qaLlvbBa0dwIz59+kq1LHRHeaQJ6udbd ZiRGpQFHwZCs2EMmuUz8ozFhAsY2XFLVozeBsWQmcbP4j6o10uQ7MBzQS w==; X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Co1iXIZX Subject: [Intel-wired-lan] [PATCH iwl-next v4 0/5] Replace auxbus with ice_adapter in the PTP support code X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sergey Temerkhanov , netdev@vger.kernel.org Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This series replaces multiple aux buses and devices used in the PTP support code with struct ice_adapter holding the necessary shared data Patches 1,2 add convenience wrappers Patch 3 does the main refactoring Patch 4 finalizes the refactoring Previous discussion: https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-20240701/042528.html v1->v2: Code rearrangement between patches v2->v3: Patch cleanup v3->v4: E825C support in ice_adapter Sergey Temerkhanov (5): ice: Introduce ice_get_phy_model() wrapper ice: Add ice_get_ctrl_ptp() wrapper to simplify the code ice: Initial support for E825C hardware in ice_adapter ice: Use ice_adapter for PTP shared data instead of auxdev ice: Drop auxbus use for PTP to finalize ice_adapter move drivers/net/ethernet/intel/ice/ice.h | 5 + drivers/net/ethernet/intel/ice/ice_adapter.c | 22 +- drivers/net/ethernet/intel/ice/ice_adapter.h | 22 +- drivers/net/ethernet/intel/ice/ice_ptp.c | 339 ++++--------------- drivers/net/ethernet/intel/ice/ice_ptp.h | 24 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 22 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 5 + 7 files changed, 129 insertions(+), 310 deletions(-)