From patchwork Mon Jul 3 17:31:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad Kelam X-Patchwork-Id: 115452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp707411vqx; Mon, 3 Jul 2023 11:19:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSWrjsrEDB+ZONBWPYzbGCNJ9JjzANrDEaYfMU7swaFJMxwZG0m+Ba+yyoPZHQ/gv3oT1T X-Received: by 2002:a17:902:ec88:b0:1a6:6bdb:b548 with SMTP id x8-20020a170902ec8800b001a66bdbb548mr10915019plg.1.1688408391742; Mon, 03 Jul 2023 11:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688408391; cv=none; d=google.com; s=arc-20160816; b=vb4xsnuaWLyZWdlgZ6jvoG8aOs1TMy55RkC58RzzhrUcYyAP4ioV2hqJ1Q4EX9sNK5 AmdXccSRr+NaiE1e/9raBt8gUYpUsH1S1LOmYTEYVvBYkYCBFLBUNLeptVhYhRrhilsB SpM0ycw+ZlUzaZC9cLqxs+6mXalT9k1mXM3xQzInW92HQv4BxIEE7rFe0LL6Omt6O0uY V0BgjW5BRWw6Hj8YOytLhAB5nvMRMX8lK4wX/58R4l+Hw9VTEg7SEKDJiUBYozyeyN+e uetPm0WLpAOGN9RR6/kmg4fnZPqhBoDYlqCcLgf8/ZGoPgkG7Eqd2KGMkPgNF/oBkZiY abhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=rO9msHe5GoTW/2jab/WC344uV+LBik+7BQx9cJi4P2c=; fh=aySem5gJZU8KoN3ZvLLhtOqzGItlX5yXPmrSZTzKnCg=; b=N5LtTc+7O46slG4TO2wMuMF/bXmHk0wBfLeOA8uO6GoOVf16vfX6SsrmnQzZToHcyz jTnuDu9oRrsUPfzoX782l3m4FJgRva8Z9O7BOt+a4aso9IxwTlZX3TZoj8RFGVZkEmAA t4hvq2Eo9o/dQxkZ8HFVVg8r77wc5eT5hmqLyb/zTcU8BKnbrvYgFFvPl1AI29Eh8knx NvnGyvLTSRH4Cw0L4A6m6gvfk/DuoRIVhmo5XrH7IDQerWoOZfvygTjm/z9yWtaB5QeY 075kDR41U1la4Ipw9Dn6mtJf2sPvbeeURE9a0OVOsgGq8MmticW9o/dgMjrYXkz5rXsm pDdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=W7L+6k0s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902ead100b001b04741042csi13755584pld.93.2023.07.03.11.19.37; Mon, 03 Jul 2023 11:19:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=W7L+6k0s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbjGCR6S (ORCPT + 99 others); Mon, 3 Jul 2023 13:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjGCR6R (ORCPT ); Mon, 3 Jul 2023 13:58:17 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C05DE42; Mon, 3 Jul 2023 10:58:16 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 363HTxu4007963; Mon, 3 Jul 2023 10:58:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=rO9msHe5GoTW/2jab/WC344uV+LBik+7BQx9cJi4P2c=; b=W7L+6k0speInyUMuaedP8ILsSVTjcEhHLo3iswMTABzBr1aLmKcISn2Y2zMx07JTtkHM 6sjJfs9X9TeENbFE/E97R5l1PTa/EYlr2CS/3ZZs4heAbY2DoY5+oaEaK3xw6Stv3V4p otZe8m9szpFltf3RzJ380a9aanrMErXfgioOtblKQfMABrJQnmjYZ1HAW9DOxtAW0i7q GLUBF4HNyuqI0gsk3NH7Snz7bN09JPVJA/BEHnRSeCv5WemaGMcSBsD/5HRTODyYU7zB I2rV/hq/Yw1ydrYHRnSNHsjBfxJ9h+uTe89iU+Kv34qbl4V9Xg2cQpmrsuzYP8pMZY+L Dw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3rjknj5fuh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 03 Jul 2023 10:58:10 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 3 Jul 2023 10:58:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 3 Jul 2023 10:58:07 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 0AC0F3F7433; Mon, 3 Jul 2023 10:31:16 -0700 (PDT) From: Hariprasad Kelam To: , CC: , , , , , , , , Subject: [PATCH] octeontx-af: fix hardware timestamp configuration Date: Mon, 3 Jul 2023 23:01:16 +0530 Message-ID: <20230703173116.5093-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-GUID: ggcPEox8V5fvdzvTPHmYRj-nvSW53row X-Proofpoint-ORIG-GUID: ggcPEox8V5fvdzvTPHmYRj-nvSW53row X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-03_13,2023-06-30_01,2023-05-22_02 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770424518245183852?= X-GMAIL-MSGID: =?utf-8?q?1770424518245183852?= MAC block on CN10K (RPM) supports hardware timestamp configuration. The previous patch which added timestamp configuration support has a bug. Though the netdev driver requests to disable timestamp configuration, the driver is always enabling it. This patch fixes the same. Fixes: d1489208681d ("octeontx2-af: cn10k: RPM hardware timestamp configuration") Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c index 4b8559ac0404..095b2cc4a699 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c @@ -763,7 +763,7 @@ static int rvu_cgx_ptp_rx_cfg(struct rvu *rvu, u16 pcifunc, bool enable) cgxd = rvu_cgx_pdata(cgx_id, rvu); mac_ops = get_mac_ops(cgxd); - mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, true); + mac_ops->mac_enadis_ptp_config(cgxd, lmac_id, enable); /* If PTP is enabled then inform NPC that packets to be * parsed by this PF will have their data shifted by 8 bytes * and if PTP is disabled then no shift is required