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 E4C6CCCA473 for ; Mon, 25 Jul 2022 11:37:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8224561B65; Mon, 25 Jul 2022 11:37:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8224561B65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1658749030; bh=iJFW6ZmQY8zRByATzhZLCBxj1JGMuIHEm3dOA2vL+Gs=; h=Date:To:References:From:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZucO/5o/rHa/PN2EYOOk+Cp8iA+KMX5pXLiRVshIWo3GOJ52SqAPPNznVWw6qE3/o P2JYbQ6KOlkxAtfiUMJ/9hE2Bimtyt9NHMWBeLfGE/k6zFjE4GZg00OpGJvJAFa1wO EUBqa5rLiHgf2g1F+UDbvHW8rA4wyBoKZHRlNA4z6spO9JuvEKPhIM14OkANeSqdyV FInZHCy/Og5wLeiO/OyNcMcNhtklt3Q0CSPQN317b6QYxUY6HdGzDA3xoUjb+Z0q8B JMvEX0f4N+U9B/cypHlmj2TdOKLQHou5QtrmfZ4W4R+O2Smp3geBL7DcfyX6a5UWD4 HxFEG7bCZaPmA== 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 q2Dsu7YK_W0B; Mon, 25 Jul 2022 11:37:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 8ACA161B82; Mon, 25 Jul 2022 11:37:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8ACA161B82 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id D97E51BF3F4 for ; Mon, 25 Jul 2022 11:37:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id BE21A41674 for ; Mon, 25 Jul 2022 11:37:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org BE21A41674 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wAXx4qR5-VLX for ; Mon, 25 Jul 2022 11:37:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C7A3741673 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp4.osuosl.org (Postfix) with ESMTPS id C7A3741673 for ; Mon, 25 Jul 2022 11:37:06 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6400,9594,10418"; a="288435375" X-IronPort-AV: E=Sophos;i="5.93,192,1654585200"; d="scan'208";a="288435375" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 04:37:05 -0700 X-IronPort-AV: E=Sophos;i="5.93,192,1654585200"; d="scan'208";a="658155326" Received: from naamamex-mobl.ger.corp.intel.com (HELO [10.13.12.74]) ([10.13.12.74]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 04:37:03 -0700 Message-ID: Date: Mon, 25 Jul 2022 14:37:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: Jacob Keller , Intel Wired LAN References: <20220721213001.2483596-1-jacob.e.keller@intel.com> <20220721213001.2483596-5-jacob.e.keller@intel.com> From: "naamax.meir" In-Reply-To: <20220721213001.2483596-5-jacob.e.keller@intel.com> 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=1658749026; x=1690285026; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=A29twrqnzdl83biv6+QQeYaNYrLffnNgTyODiOFCIFM=; b=HvH4st6Sr4T5DI6KRnb4bvy+YObLUT38RzH2a+UJM34GFUqWEVlAtDHc TbaADokfhdS3uBDzwssjVBOnvl0hYh2ly330WaIBpJpx37iFSbLAnmJG/ hK9D1hiDkrNtBnfFI6BX9GbF6cH+6z3KcaeVPt+/DVZ+PpRSBuFBSha2d LuJ6Bm/k0Gz0PYx4iSn/8+UJWw4lFKoysVHdGfn5t0a4/dbtyUSIJI8Ei jDWnDmU9DqUnaZlnORZSRW9jdSfAb27B+r0dsxV8E8TVRhbpmV4iRhRX1 RVM1Xs5DcfPtuD3kufuVxPJ5/GgTkmURXEfLIei/X3vv5JdhUj82tCfNG g==; X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HvH4st6S Subject: Re: [Intel-wired-lan] [net-next PATCH 3/7] e1000e: convert .adjfreq to .adjfine 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On 7/22/2022 00:29, Jacob Keller wrote: > The PTP implementation for the e1000e driver uses the older .adjfreq > method. This method takes an adjustment in parts per billion. The newer > .adjfine implementation uses scaled_ppm. The use of scaled_ppm allows for > finer grained adjustments and is preferred over using the older > implementation. > > Make use of mul_u64_u64_div_u64 in order to handle possible overflow of the > multiplication used to calculate the desired adjustment to the hardware > increment value. > > Signed-off-by: Jacob Keller > --- > drivers/net/ethernet/intel/e1000e/e1000.h | 2 +- > drivers/net/ethernet/intel/e1000e/netdev.c | 4 ++-- > drivers/net/ethernet/intel/e1000e/ptp.c | 15 ++++++++------- > 3 files changed, 11 insertions(+), 10 deletions(-) Tested-by: Naama Meir _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan