From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 75C41A00C4; Fri, 1 Jul 2022 13:55:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67BA940A7B; Fri, 1 Jul 2022 13:55:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 976564069D; Fri, 1 Jul 2022 13:55:01 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2612RFZF012572; Fri, 1 Jul 2022 04:55:00 -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-transfer-encoding : content-type; s=pfpt0220; bh=lMk+1CAMESf2XjeJSp+9hy92ZWwTYYfJWGIq5xt+p2k=; b=BQHgPBDssF4eV9MZcGNutgZ1rVJ7SjG8YXq+gml7mPHkxVUg+kkkpNZvrH/qoVRf5CXv r9ht98EV5eyGj8m7iS+yVSfw7s9CvHx8m2xdgyzok/R+ze4T5xTvV0xWR5sBHtXstc15 ewrR5g39VFr79mRTCU+PVVHYndFFkipSdYFeIXxaFMnKxq6G8t4BI360vgSulSOXYtLc Qdr8uVvW5y16zgNpUJbKID3HW1zyaIwGD8Z5fky1R2rWlvjSHJbdMWjlNopIEplMCUon 619nGmIHbJEyqnCwzhwl/xnwxi5pRfDxBegj9zqe7L+er4Ga9FRt/bHzPW4tlTfdQrDH DA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3h1akbna4s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 01 Jul 2022 04:55:00 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 1 Jul 2022 04:54:58 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 1 Jul 2022 04:54:58 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 210913F706B; Fri, 1 Jul 2022 04:54:55 -0700 (PDT) From: Tomasz Duszynski To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , , Tomasz Duszynski , Subject: [PATCH] common/cnxk: allow changing PTP mode on 10k platforms Date: Fri, 1 Jul 2022 13:54:48 +0200 Message-ID: <20220701115448.2222697-1-tduszynski@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: DkPDlCHVcYqbldG5g7iqMpRUYCseChy5 X-Proofpoint-ORIG-GUID: DkPDlCHVcYqbldG5g7iqMpRUYCseChy5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-01_06,2022-06-28_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Since firmware has added support for toggling PTP mode on 10k platforms userspace code should allow doing that as well. Cc: stable@dpdk.org Signed-off-by: Tomasz Duszynski Reviewed-by: Jerin Jacob Kollanukkaran --- drivers/common/cnxk/roc_bphy_cgx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/common/cnxk/roc_bphy_cgx.c b/drivers/common/cnxk/roc_bphy_cgx.c index a5df104088..e966494e21 100644 --- a/drivers/common/cnxk/roc_bphy_cgx.c +++ b/drivers/common/cnxk/roc_bphy_cgx.c @@ -285,9 +285,6 @@ roc_bphy_cgx_ptp_rx_ena_dis(struct roc_bphy_cgx *roc_cgx, unsigned int lmac, { uint64_t scr1, scr0; - if (roc_model_is_cn10k()) - return -ENOTSUP; - if (!roc_cgx) return -EINVAL; -- 2.25.1