Message ID | 20221205195253.2475492-16-jacob.e.keller@intel.com |
---|---|
State | Accepted |
Delegated to: | Anthony Nguyen |
Headers | show
Return-Path: <intel-wired-lan-bounces@osuosl.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>) 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=ZeJgkDb4; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NQvPm0dkdz23np for <incoming@patchwork.ozlabs.org>; Tue, 6 Dec 2022 06:54:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6A4278191E; Mon, 5 Dec 2022 19:54:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6A4278191E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1670270042; bh=KyZfMS7cGkSS30MjQ7slXSAJrIJL4WE1+Yxidbk/j3o=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=ZeJgkDb4k3NtWUIEDlZful9JWqWZhjxajL3ieuLuzHCgTw9FAkg1/hzcYJWAAI0x9 eE5/tTdLkaNv28GaqHef8oCpyr5OhTjT6JWeqmFsGk3CEA3yX90JaORmSwbAP27QBS hJgXhA5i3D8mga+wY10fGjXROhtGeZfCJIBqHcTY0pqXjNUEk5+sSdEQhI/8md5FRg CpWATEFLrLmNHDukuGvCd3IVZ1aibKuMZVJCqdqj/V9BTuQxVtu7T4OwgHpMoRuSmj eDoQDdDfIYRZ0//jx19d2Bas2KTytr50vrlelVZMX3P6LScVqiTUs1khFDGLhVIgvy blQ9QsN4EwqYw== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xp10ub6BGhwZ; Mon, 5 Dec 2022 19:54:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 49A4E8196A; Mon, 5 Dec 2022 19:54:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 49A4E8196A X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6E94E1BF3EF for <intel-wired-lan@lists.osuosl.org>; Mon, 5 Dec 2022 19:53:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A0D6F818C2 for <intel-wired-lan@lists.osuosl.org>; Mon, 5 Dec 2022 19:53:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A0D6F818C2 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P_4KOnUVRNrd for <intel-wired-lan@lists.osuosl.org>; Mon, 5 Dec 2022 19:53:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C7E08818EC Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp1.osuosl.org (Postfix) with ESMTPS id C7E08818EC for <intel-wired-lan@lists.osuosl.org>; Mon, 5 Dec 2022 19:53:05 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="317592405" X-IronPort-AV: E=Sophos;i="5.96,220,1665471600"; d="scan'208";a="317592405" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2022 11:53:05 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="709379330" X-IronPort-AV: E=Sophos;i="5.96,220,1665471600"; d="scan'208";a="709379330" Received: from jekeller-desk.amr.corp.intel.com (HELO jekeller-desk.jekeller.internal) ([10.166.241.7]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2022 11:53:04 -0800 From: Jacob Keller <jacob.e.keller@intel.com> To: Intel Wired LAN <intel-wired-lan@lists.osuosl.org> Date: Mon, 5 Dec 2022 11:52:53 -0800 Message-Id: <20221205195253.2475492-16-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.38.1.420.g319605f8f00e In-Reply-To: <20221205195253.2475492-1-jacob.e.keller@intel.com> References: <20221205195253.2475492-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=1670269986; x=1701805986; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l8dczgf9siqqa5gbjbhy8wvP39yZO4UjIcDSi8baHU0=; b=Rj6ygm6Nx1r2Mv5AjG5+h6pA3IId67W4jSTSz8WM+30EHQKfId6uggeL zjy4rGNCEVTc3veTbmtyBhS/RPb9vUwSmkVPQoJLFzZ9q8gFWFzYCP5H8 vsvMd8noLxq22IZJvQAbzLt7g6vKLxuNkXB7ewru0qC21wycsVKHYX+Wf jqlpxkdz7JvUnTW0fcQP43rysjNnb4jn4wZA0041tYi+LBX+Byfv1APjf FOtr1+u410Mn2BKvdYfSUhdxlHxVPecs7f7OfrDA5nMMPR6XOOrclvnhH BnxYf8/LwlHYgrcTunJXFBYkjvYsiLAONsoQAElnR9FSOsKYSFeWyLnbA w==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Rj6ygm6N Subject: [Intel-wired-lan] [PATCH net-next v3 15/15] ice: reschedule ice_ptp_wait_for_offset_valid during reset X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development <intel-wired-lan.osuosl.org> List-Unsubscribe: <https://lists.osuosl.org/mailman/options/intel-wired-lan>, <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe> List-Archive: <http://lists.osuosl.org/pipermail/intel-wired-lan/> List-Post: <mailto:intel-wired-lan@osuosl.org> List-Help: <mailto:intel-wired-lan-request@osuosl.org?subject=help> List-Subscribe: <https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe> Cc: Siddaraju DH <siddaraju.dh@intel.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" <intel-wired-lan-bounces@osuosl.org> |
Series |
ice: improve Tx timestamp corner cases
|
expand
|
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index b1cc1f45e419..bd6fe25321bd 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -1245,8 +1245,13 @@ static void ice_ptp_wait_for_offsets(struct kthread_work *work) pf = ptp_port_to_pf(port); hw = &pf->hw; - if (ice_is_reset_in_progress(pf->state)) + if (ice_is_reset_in_progress(pf->state)) { + /* wait for device driver to complete reset */ + kthread_queue_delayed_work(pf->ptp.kworker, + &port->ov_work, + msecs_to_jiffies(100)); return; + } tx_err = ice_ptp_check_tx_fifo(port); if (!tx_err)