From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62E61C001B0 for ; Tue, 15 Aug 2023 22:36:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1E354611C6; Tue, 15 Aug 2023 22:36:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1E354611C6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1692138983; bh=dOf3LAc/LUsIJ5i29lFi4oxqL02CDaqRYw9GoEw6utQ=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=NW2B4JbjiSGjInfm7BC3tmuQ1cF6mD1+qKIWXoQDtwOJmP/ImQYfOiF3opYtRoSSZ fVFtfeD7CHIV0C+Ice8f9jYVRM5kvTtVTkTXnZahTfnRoawBhF9LT8/xyg/2Lbsh/6 hoo2YkzRG3O/uHcyDm1XOGmTglsCBq4TOqgxrlLfZg/hHzq59/02kZ4PWsnWFqUczv 6qYX3Lac6vG/EV+8xv2c2LSaoWEwh7CRYpeSGEQsRLV0NKAwzdkmKjBMP6Cmryn7DT XLQZbOc0WFjMgMGszY2gMulrhZCKWem57po6wMoulb6qDOFsAnm64Bp9/0wBSBdzHr Sx5Zb72R89hTg== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sLfpvYIa48zU; Tue, 15 Aug 2023 22:36:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 3EB4D611C9; Tue, 15 Aug 2023 22:36:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3EB4D611C9 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8A6631BF47F for ; Tue, 15 Aug 2023 22:36:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 75FEF414A2 for ; Tue, 15 Aug 2023 22:35:59 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 75FEF414A2 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7mS7mVDgVtBO for ; Tue, 15 Aug 2023 22:35:59 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by smtp2.osuosl.org (Postfix) with ESMTPS id 6DDF6414B8 for ; Tue, 15 Aug 2023 22:35:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 6DDF6414B8 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="352718853" X-IronPort-AV: E=Sophos;i="6.01,175,1684825200"; d="scan'208";a="352718853" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 15:35:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="710905993" X-IronPort-AV: E=Sophos;i="6.01,175,1684825200"; d="scan'208";a="710905993" Received: from jekeller-desk.amr.corp.intel.com (HELO jekeller-desk.jekeller.internal) ([10.166.241.1]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 15:35:56 -0700 From: Jacob Keller To: Intel Wired LAN Date: Tue, 15 Aug 2023 15:35:47 -0700 Message-ID: <20230815223551.1238091-6-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.41.0.1.g9857a21e0017.dirty In-Reply-To: <20230815223551.1238091-1-jacob.e.keller@intel.com> References: <20230815223551.1238091-1-jacob.e.keller@intel.com> 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=1692138958; x=1723674958; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SRQcXgBDubMF8ApKYK/hX1XCacvaVjxy/MSVdCLj2w4=; b=WjZMi20vALXLA5IzoSa/bOIMoh8GypavHaDb+J1fRddKVl85sU4EYxNC AmnbXgcbqX5gfpetfQnVGy3APG0675jeV5Ba4Sl+Ek4bcHeqUglX1ylPW eqdBsvl9RV+HlC73MEgqjwhrlEtKV134wNW38nPZkim+qOQfuOK+MGX6N nKvkQN3eOH/OQftqKxFAs0UuCa6jlr07OMi4UZQQponKh6COzpgIQFwSE 92g3bZcHOnLDV2M2FxiCGhlRVXV+YE1PuU2R4JQrU/WOAkwIFEpVHHomS kosVyzS33AIlbfwCOkczYB6Dwvs54bfuj1YXvbSUdFmXLlWp01cjWqZSw g==; X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WjZMi20v Subject: [Intel-wired-lan] [PATCH iwl-next 0/4] ice: refactor PTP feature flags 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: Karol Kolacinski , Anthony Nguyen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" This series refactors and extends the feature flag detection for a couple of PTP feature flags. This includes ICE_F_GNSS and ICE_F_SMA_CTRL. Instead of blindly assuming the feature is enabled on all E810-T devices, check the netlist to confirm that the feature is supported on that device and platform. For SMA control, this allows the driver to fallback to the fixed pin configuration that is supported by default E810 configurations when the SMA control is not accessible. For GNSS, this ensures that we do not attempt to read the GNSS portion of the device if its not present, avoiding some unnecessary warning messages. For ICE_F_SMA_CTRL this could be seen as a fix, but given the scope of the code I decided that its next material. I think of it more as extending the feature capability to support pins on more platforms. Jacob Keller (4): ice: remove ICE_F_PTP_EXTTS feature flag ice: don't enable PTP related capabilities on non-owner PFs ice: check the netlist before enabling ICE_F_SMA_CTRL ice: check netlist before enabling ICE_F_GNSS drivers/net/ethernet/intel/ice/ice.h | 1 - .../net/ethernet/intel/ice/ice_adminq_cmd.h | 8 +++- drivers/net/ethernet/intel/ice/ice_common.c | 46 +++++++++++++++++++ drivers/net/ethernet/intel/ice/ice_common.h | 3 ++ drivers/net/ethernet/intel/ice/ice_lib.c | 12 +++-- drivers/net/ethernet/intel/ice/ice_ptp.c | 4 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 31 +++++++++++++ drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 2 + 8 files changed, 96 insertions(+), 11 deletions(-) base-commit: 361b86237e1afbf2c3be7cb604b6aac6f8b8c38c -- 2.41.0.1.g9857a21e0017.dirty _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan