Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5936745imu; Wed, 30 Jan 2019 06:10:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN4qFGCBRv0sQdeBagew8JTY+t/9hB+4CWfECdeEGBC6respA0ZaLG9kLTq6SnEsYsI7yLZR X-Received: by 2002:a62:e704:: with SMTP id s4mr31046538pfh.124.1548857418827; Wed, 30 Jan 2019 06:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548857418; cv=none; d=google.com; s=arc-20160816; b=tmAvn0uVlk8dVTiM3poehLEU1EluJJsAZTs/naw85XMITVtD1c+J3Ve9HVeAeLM4e/ LdIawv6zxrnZGLokcyxebJ1uks1s7wXX/a4mxkPfOe0ZtRckzxsQ63sIYJ3ttpJdaBm1 kCQHgm7tV78/iBj/N1bOXZpb5HAHx0L7l159V7n2U5BacHu+BSGQ0wZcJgqhDRfUJcfJ 7kVPlhV1Za0s63JXOooMjTnJG1r2ZfAFlKLMc/zfs1n9HSFcGVThqcVB/E9bc5Fk7Qun cGlGXa6EDXD+0n3kJUCXyj98Dz03rw9T0EEyc28OQ6ldcMiyI8TlZCwTp8QWEVU1vaBi 70rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sqZWsAAJLNEbUgW9XcZYSSlcYK+8brNCRNv2CjpUjxM=; b=zNjRA/lPtTV3RKWU/z6W1bKGE5gLgg+u8A0DshaYqS3RVBBsyrZ8i3B2S1cmwMeNo/ qBMNRAoTGelMzpyA9HwWAlxQESilqg4HY52RbVDGsFhwDVZxR8kufVZDfkKXEpE65Kbf mOQkAA3rHPbipi+rOxPa5Qe54b4apNTqv5gAIpWs38oZaBA1kSevMzlAdFwXIOzBrkIF L0AfFGcgW/HtB9IpZaxDsn4VBpvZTte1bZ3/oWp40ztgsZW6VDlJG1i7DQEugcZXgtC5 NhvBWH9ckt7Gb0FFutIUOCTljrtLPKC7H3XPrE84xpGSr7ykbfn3JvPAbRE+pc48GpnE F3QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E4itVRdw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c65si1606860pfa.148.2019.01.30.06.10.02; Wed, 30 Jan 2019 06:10:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E4itVRdw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731064AbfA3OJd (ORCPT + 99 others); Wed, 30 Jan 2019 09:09:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:35982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727227AbfA3OJc (ORCPT ); Wed, 30 Jan 2019 09:09:32 -0500 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF0CE218A4; Wed, 30 Jan 2019 14:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548857372; bh=0Km+iSKyaMuzF9hZrxprPh3mJUVRfgED3Q3IXmmmmNQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E4itVRdwP9Q0okhcv+1BDS+Xuy4KlQsSlP+XSQpv6tJK3e7p6ADTEaqw/vyWK5pd9 bdKnW6x+MWBmcc5DwVwoxfHI6GjxIRfB3WX5iaOlMbFg1p2eNoeoZqoaten+S59ucR Wd9iw9RZQcAJlt752qv2/jDXaZKUfVf1NFKPeuU0= Date: Wed, 30 Jan 2019 08:09:29 -0600 From: Bjorn Helgaas To: Aleksey Makarov Cc: netdev@vger.kernel.org, Robert Richter , "Goutham, Sunil" , Richard Cochran , Radoslaw Biernacki , linux-kernel@vger.kernel.org, David Daney , Philippe Ombredanne , Joe Perches , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next v6 1/2] net: add support for Cavium PTP coprocessor Message-ID: <20190130140929.GA227269@google.com> References: <20180115124500.14872-1-aleksey.makarov@cavium.com> <20180115124500.14872-2-aleksey.makarov@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180115124500.14872-2-aleksey.makarov@cavium.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 15, 2018 at 06:44:56PM +0600, Aleksey Makarov wrote: > From: Radoslaw Biernacki > > This patch adds support for the Precision Time Protocol > Clocks and Timestamping hardware found on Cavium ThunderX > processors. > > Signed-off-by: Radoslaw Biernacki > Signed-off-by: Aleksey Makarov > Acked-by: Philippe Ombredanne > --- > drivers/net/ethernet/cavium/Kconfig | 12 + > drivers/net/ethernet/cavium/Makefile | 1 + > drivers/net/ethernet/cavium/common/Makefile | 1 + > drivers/net/ethernet/cavium/common/cavium_ptp.c | 353 ++++++++++++++++++++++++ > drivers/net/ethernet/cavium/common/cavium_ptp.h | 70 +++++ > 5 files changed, 437 insertions(+) > create mode 100644 drivers/net/ethernet/cavium/common/Makefile > create mode 100644 drivers/net/ethernet/cavium/common/cavium_ptp.c > create mode 100644 drivers/net/ethernet/cavium/common/cavium_ptp.h > > diff --git a/drivers/net/ethernet/cavium/Kconfig b/drivers/net/ethernet/cavium/Kconfig > index 63be75eb34d2..96586c0b4490 100644 > --- a/drivers/net/ethernet/cavium/Kconfig > +++ b/drivers/net/ethernet/cavium/Kconfig > @@ -50,6 +50,18 @@ config THUNDER_NIC_RGX > This driver supports configuring XCV block of RGX interface > present on CN81XX chip. > > +config CAVIUM_PTP > + tristate "Cavium PTP coprocessor as PTP clock" > + depends on 64BIT > + imply PTP_1588_CLOCK > + default y Why is this "default y"? It looks like this is a PCI driver and probably should be loaded only when the PCI device is present. > + ---help--- > + This driver adds support for the Precision Time Protocol Clocks and > + Timestamping coprocessor (PTP) found on Cavium processors. > + PTP provides timestamping mechanism that is suitable for use in IEEE 1588 > + Precision Time Protocol or other purposes. Timestamps can be used in > + BGX, TNS, GTI, and NIC blocks.