Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6656489ybn; Mon, 30 Sep 2019 01:23:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOTPqahRWkwRLS9gy+hQnYtXTey2Ne1BX8X2qgCKzMTJzgw4vvjwRo3d/f1BVpHEr6C0gJ X-Received: by 2002:a17:906:255b:: with SMTP id j27mr18175054ejb.96.1569831807836; Mon, 30 Sep 2019 01:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569831807; cv=none; d=google.com; s=arc-20160816; b=V47vi27wOwWlO5GvigclEHYq0AkMmECyElctqU2frioyiXuCt5SsxEOy17XXrY4g3X 7gAldyFnEnVPeNLiwHPM2FpIaEtXfnkriOQiN5xzMItQSOlm+8MUJNgNv+TNnBkXTirw 1hFFqNzB94IAlLgY0JRyXag2fC7yyliAavzoo/78LRrme5F/SlDCgWOgkdxRNt13Bpno IptniwmYoqLl8sJ0gDcqS9GSBdntx2DQGqvBk8HwjN2bVgfD4iQBprH/JgMTM9lmyPr7 exV9HtNLApw4MBcvE7Y1629ARPL/IdnrFY9RjGiC9v9TIw/opS63Ue302Y7X0nsEq2R3 ePZw== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=lq76Q2DqkLnHfnHiBDv8tefXN0eiPLPvHsQNqb4Q7RI=; b=zW5gNYdopdFjM0tGH1sucICaX6ntdzMSB9y6hM2VDZG1ltlS3g1uKW3oCUtr60WWC6 IHRyGlm0tfdReK2YWS5m8kruIFf3s+boTO5e7LvT3o1n5JrX9mj1CziOq0V+aA2HRN7/ DKAZnvRuz7WD9yR86S/G6Mx6dymqCui/Gybm9DOvR1augEE68TN8BsoXZUqWL4tpyyeM P3LAcrX9xRtS4fonXNkd6A4Z9PK8C5itFlRXzeTU+6xg/tWJ1aO+GOH1QuwFevHvNKZ5 wQjsO5rtv/CwS4l5eUFyv1NDWbwFV2Y2EVCVUjg3JnOIClmx/0/A7wIPHl0GwsdVf4pS xwTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=mHxFytsw; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si431155eju.25.2019.09.30.01.23.03; Mon, 30 Sep 2019 01:23:27 -0700 (PDT) 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=@synopsys.com header.s=mail header.b=mHxFytsw; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730191AbfI3IUG (ORCPT + 99 others); Mon, 30 Sep 2019 04:20:06 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:46100 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730028AbfI3IT1 (ORCPT ); Mon, 30 Sep 2019 04:19:27 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 50BDCC011E; Mon, 30 Sep 2019 08:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1569831567; bh=DrIxAcUMdhwcfqhJRFHtOh2PccbH2YMx64iLgCedU0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=mHxFytsww0fQkJmHKwl8zfUgxPAwcO8ijd/OP5Y9WJzduzrKsUhIdDEy+kLWsJfAK 7Nw7Sq/OOSrT5DCq9xq+rVYS2gedftuX0J1gb3jd0QemycvT43/V2cWzazL3TFo2yf p5KPidR1HBkLHxt14M4tobbr12qY4/4qVdMg0MDxhjkdEdaFT90HGZVf2Zx4SjVcV0 jPgQHdoQB1l7DKT2Wt4hZlyIWdIgeia0u5wJjDcOaX4iXsgXq9xxng460p6iDTmBCh pCP1fTdBAM61iSTvUIQJoe+MyxrtgrgBvbQRn+yfJ9dbB1iJ673QBRs84vH8MXgGTM UrLp3zWqe9bIQ== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 70C64A007D; Mon, 30 Sep 2019 08:19:23 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 net 5/9] net: stmmac: Correctly take timestamp for PTPv2 Date: Mon, 30 Sep 2019 10:19:09 +0200 Message-Id: <0df38430ed622a5dc9f9f28feb5516ff59de8fb9.1569831229.git.Jose.Abreu@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The case for PTPV2_EVENT requires event packets to be captured so add this setting to the list of enabled captures. Fixes: 891434b18ec0 ("stmmac: add IEEE PTPv1 and PTPv2 support.") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index d3232738fb25..31a237ec73bc 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -629,6 +629,7 @@ static int stmmac_hwtstamp_set(struct net_device *dev, struct ifreq *ifr) config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT; ptp_v2 = PTP_TCR_TSVER2ENA; snap_type_sel = PTP_TCR_SNAPTYPSEL_1; + ts_event_en = PTP_TCR_TSEVNTENA; ptp_over_ipv4_udp = PTP_TCR_TSIPV4ENA; ptp_over_ipv6_udp = PTP_TCR_TSIPV6ENA; ptp_over_ethernet = PTP_TCR_TSIPENA; -- 2.7.4