Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3176118ybz; Sun, 19 Apr 2020 19:53:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIu2G/+P6q5hS/2H4OSoWChHhN12hSwpZ6HYfYMlXfpckeLpoL9iFv5vZVKV/OyI6PUsjar X-Received: by 2002:a50:c445:: with SMTP id w5mr1399807edf.153.1587351211712; Sun, 19 Apr 2020 19:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587351211; cv=none; d=google.com; s=arc-20160816; b=TA1Gdeu+Fj1QyB8EYZeu5ZqtNl1nS+9y/vO4X5E2dCWVvFCCtKbn/VeM+2Ldqw8Y7i MtT421kwb+OBSCxNkr++gkKgMB0c/5wg32kHM9Qfuxqph7icUCxAId6SwtP4uzZoy4Ot JhAcR9MrEcqFBFEEvlG0Mf7zd3rXuCZBNl3tIK9K7V55alBYudfek/sYrB7E3e0NOHIy rrL2WKzg4/GwjBxbS/80O6fVWSU17Ecaz0efA9jPDdfj/yTt8o2WEfhcLUK/HmP9xb5E qSyL5gyu03E/OE3DpIp2+MRVLhCV1/Jclqv7RCfMRsAa72tAMG8xNvFVN6TEbFW8y0Sh DoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=LNlnZNGoiEfpjlQBHyEmuq+gvaeSz9Yd9XmepVOe0T0=; b=au0L+V0xFs1cH+xeFS9F2fytEoR4ja0/xaGTTM1Y9/9k6VfmatXxgL23j/xi44WexZ PIpA0iVQ+Psh6pRW0ZhS7bBar7qj682TkykIDqKNP94x3EfBjdKZcWVnY+bvtJpU/Hpn aG4htW2JMBfopnXP+clVQLcZNY1pGfCE2s38VvkYzP1q9XvUBWik9TleOQZgiOB6YfUQ NaoKLyZZniyMdjaDRzACg3hgv4HFCOPYflhvEkdCFFMkRMfM25CY+vVdV3m5edzuir3R AFUevp5ZXXXpR1qcJ86Os04yStOmKnN1JveXkpoWzyRNQPfyZroGQssZ5ZFe9WNL+q9Z bmsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si16299436edb.37.2020.04.19.19.53.09; Sun, 19 Apr 2020 19:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbgDTCvk (ORCPT + 99 others); Sun, 19 Apr 2020 22:51:40 -0400 Received: from inva020.nxp.com ([92.121.34.13]:55908 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgDTCvX (ORCPT ); Sun, 19 Apr 2020 22:51:23 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id AE2031A0616; Mon, 20 Apr 2020 04:51:21 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id BECEE1A0642; Mon, 20 Apr 2020 04:51:16 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id CF7C7402ED; Mon, 20 Apr 2020 10:51:08 +0800 (SGT) From: Yangbo Lu To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Yangbo Lu , "David S . Miller" , Richard Cochran , Vladimir Oltean , Claudiu Manoil , Andrew Lunn , Vivien Didelot , Florian Fainelli , Alexandre Belloni , Microchip Linux Driver Support Subject: [v3, 7/7] net: dsa: felix: enable PTP programmable pin Date: Mon, 20 Apr 2020 10:46:51 +0800 Message-Id: <20200420024651.47353-8-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420024651.47353-1-yangbo.lu@nxp.com> References: <20200420024651.47353-1-yangbo.lu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable PTP programmable pin. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. Changes for v3: - None. --- drivers/net/dsa/ocelot/felix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index e1573bc..bfa4c12 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -504,13 +504,15 @@ static struct ptp_clock_info ocelot_ptp_clock_info = { .max_adj = 0x7fffffff, .n_alarm = 0, .n_ext_ts = 0, - .n_per_out = 0, - .n_pins = 0, + .n_per_out = OCELOT_PTP_PINS_NUM, + .n_pins = OCELOT_PTP_PINS_NUM, .pps = 0, .gettime64 = ocelot_ptp_gettime64, .settime64 = ocelot_ptp_settime64, .adjtime = ocelot_ptp_adjtime, .adjfine = ocelot_ptp_adjfine, + .verify = ocelot_ptp_verify, + .enable = ocelot_ptp_enable, }; /* Hardware initialization done here so that we can allocate structures with -- 2.7.4