From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20081.outbound.protection.outlook.com [40.107.2.81]) by dpdk.org (Postfix) with ESMTP id D665034F3 for ; Thu, 4 Apr 2019 09:23:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yn0ITHROfsc88hQP8l9AYrVHxcRtpAJPeGnk/zlMyGw=; b=NrLpGuWxw/GnCJUFidhM1n0b90LXXGdjZl2W0uq+1wwmzCgCeK2jJfVRLzVR0V7n1GTdoTgrV1ku5pj2Mzyil3+jB2OLnSZkB0Go6ZZ4RwgzJXK14NYqjvEQ0snj7NBlfHzml+uCH49wqvhXryGrI6HxRYtIW2w/feJ9Tk9TYf8= Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (20.177.56.80) by VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16; Thu, 4 Apr 2019 07:23:22 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::f198:d57:e38d:30]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::f198:d57:e38d:30%4]) with mapi id 15.20.1750.017; Thu, 4 Apr 2019 07:23:22 +0000 From: Shreyansh Jain To: "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , Shreyansh Jain Thread-Topic: [PATCH v2 1/3] bus/fslmc: cleanup unused firmware code Thread-Index: AQHU6rdJukagw3zUFUqAY243fZW1ZQ== Date: Thu, 4 Apr 2019 07:23:22 +0000 Message-ID: <20190404072335.24555-2-shreyansh.jain@nxp.com> References: <20190403142357.17700-1-shreyansh.jain@nxp.com> <20190404072335.24555-1-shreyansh.jain@nxp.com> In-Reply-To: <20190404072335.24555-1-shreyansh.jain@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.120.0.8] x-mailer: git-send-email 2.19.1 x-clientproxiedby: BM1PR01CA0148.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::18) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:71::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d5fbb8b6-29f2-4998-4c39-08d6b8ce6b4b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR04MB4480; x-ms-traffictypediagnostic: VI1PR04MB4480: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(136003)(39860400002)(396003)(189003)(199004)(7736002)(446003)(14444005)(6916009)(8936002)(6116002)(6436002)(316002)(4326008)(386003)(5640700003)(66066001)(2501003)(68736007)(25786009)(14454004)(81166006)(54906003)(1076003)(305945005)(50226002)(8676002)(86362001)(11346002)(186003)(476003)(486006)(5660300002)(99286004)(44832011)(71190400001)(6486002)(2351001)(105586002)(106356001)(3846002)(6512007)(52116002)(76176011)(53936002)(26005)(2616005)(6506007)(102836004)(2906002)(97736004)(36756003)(81156014)(71200400001)(256004)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4480; H:VI1PR04MB4688.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: cHDOofgFEujQEJ628NOwvDU5FGfOv9XUjC1SXBuBSbdpEt8nlfF7C/lvG+dR6oynO+px0Ip5+8PCAzsDUlSfoJoxpjzwIuRkrEbZ+4/ozHYviu/nSzUubUbjiplIKR3kifrqA5s9Jt1UGasdBE8ygczN+Fs/aR2hLlmqrMI/VUKEkAR+vrQo5JLiCahU7qzxvdWpOYFDwjwxtf9+0EuK2p4H36mVLCMiHdf+pZM/mm0OHiTaOiRWXqtEMoOxBaNNzg7csfW6xFvCc3BcsUvjTb7kbur/a8My8fEqFCosmBrtNYQ7vLUnUbudOr+YiT3LkCCZsVYiJkhcw5r9fnxshCg1Jv6WdPzSk2eh5G/a9eP879kQBVOZ70bVYTkTCYqlLBSRcDW1+/goWd2bZehhDjzqiTBq1UZnsJKD/+5KUI8= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5fbb8b6-29f2-4998-4c39-08d6b8ce6b4b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 07:23:22.6797 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4480 Subject: [dpdk-dev] [PATCH v2 1/3] bus/fslmc: cleanup unused firmware code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2019 07:23:24 -0000 Removes some unused firmware code which was added in last bump of the firmware version. No current features uses these APIs. Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/mc/dpci.c | 75 -------------------------------- drivers/bus/fslmc/mc/dpcon.c | 30 ------------- drivers/bus/fslmc/mc/fsl_dpci.h | 21 --------- drivers/bus/fslmc/mc/fsl_dpcon.h | 19 -------- 4 files changed, 145 deletions(-) diff --git a/drivers/bus/fslmc/mc/dpci.c b/drivers/bus/fslmc/mc/dpci.c index 95edae9d9..2874a6196 100644 --- a/drivers/bus/fslmc/mc/dpci.c +++ b/drivers/bus/fslmc/mc/dpci.c @@ -301,81 +301,6 @@ int dpci_get_attributes(struct fsl_mc_io *mc_io, return 0; } =20 -/** - * dpci_get_peer_attributes() - Retrieve peer DPCI attributes. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCI object - * @attr: Returned peer attributes - * - * Return: '0' on Success; Error code otherwise. - */ -int dpci_get_peer_attributes(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpci_peer_attr *attr) -{ - struct dpci_rsp_get_peer_attr *rsp_params; - struct mc_command cmd =3D { 0 }; - int err; - - /* prepare command */ - cmd.header =3D mc_encode_cmd_header(DPCI_CMDID_GET_PEER_ATTR, - cmd_flags, - token); - - /* send command to mc*/ - err =3D mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params =3D (struct dpci_rsp_get_peer_attr *)cmd.params; - attr->peer_id =3D le32_to_cpu(rsp_params->id); - attr->num_of_priorities =3D rsp_params->num_of_priorities; - - return 0; -} - -/** - * dpci_get_link_state() - Retrieve the DPCI link state. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCI object - * @up: Returned link state; returns '1' if link is up, '0' otherwise - * - * DPCI can be connected to another DPCI, together they - * create a 'link'. In order to use the DPCI Tx and Rx queues, - * both objects must be enabled. - * - * Return: '0' on Success; Error code otherwise. - */ -int dpci_get_link_state(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - int *up) -{ - struct dpci_rsp_get_link_state *rsp_params; - struct mc_command cmd =3D { 0 }; - int err; - - /* prepare command */ - cmd.header =3D mc_encode_cmd_header(DPCI_CMDID_GET_LINK_STATE, - cmd_flags, - token); - - /* send command to mc*/ - err =3D mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params =3D (struct dpci_rsp_get_link_state *)cmd.params; - *up =3D dpci_get_field(rsp_params->up, UP); - - return 0; -} - /** * dpci_set_rx_queue() - Set Rx queue configuration * @mc_io: Pointer to MC portal's I/O object diff --git a/drivers/bus/fslmc/mc/dpcon.c b/drivers/bus/fslmc/mc/dpcon.c index 92bd26512..3f6e04b97 100644 --- a/drivers/bus/fslmc/mc/dpcon.c +++ b/drivers/bus/fslmc/mc/dpcon.c @@ -295,36 +295,6 @@ int dpcon_get_attributes(struct fsl_mc_io *mc_io, return 0; } =20 -/** - * dpcon_set_notification() - Set DPCON notification destination - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCON object - * @cfg: Notification parameters - * - * Return: '0' on Success; Error code otherwise - */ -int dpcon_set_notification(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpcon_notification_cfg *cfg) -{ - struct dpcon_cmd_set_notification *dpcon_cmd; - struct mc_command cmd =3D { 0 }; - - /* prepare command */ - cmd.header =3D mc_encode_cmd_header(DPCON_CMDID_SET_NOTIFICATION, - cmd_flags, - token); - dpcon_cmd =3D (struct dpcon_cmd_set_notification *)cmd.params; - dpcon_cmd->dpio_id =3D cpu_to_le32(cfg->dpio_id); - dpcon_cmd->priority =3D cfg->priority; - dpcon_cmd->user_ctx =3D cpu_to_le64(cfg->user_ctx); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - /** * dpcon_get_api_version - Get Data Path Concentrator API version * @mc_io: Pointer to MC portal's DPCON object diff --git a/drivers/bus/fslmc/mc/fsl_dpci.h b/drivers/bus/fslmc/mc/fsl_dpc= i.h index 9af9097e5..cf3d15267 100644 --- a/drivers/bus/fslmc/mc/fsl_dpci.h +++ b/drivers/bus/fslmc/mc/fsl_dpci.h @@ -108,27 +108,6 @@ int dpci_get_attributes(struct fsl_mc_io *mc_io, uint16_t token, struct dpci_attr *attr); =20 -/** - * struct dpci_peer_attr - Structure representing the peer DPCI attributes - * @peer_id: DPCI peer id; if no peer is connected returns (-1) - * @num_of_priorities: The pper's number of receive priorities; determines= the - * number of transmit priorities for the local DPCI object - */ -struct dpci_peer_attr { - int peer_id; - uint8_t num_of_priorities; -}; - -int dpci_get_peer_attributes(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpci_peer_attr *attr); - -int dpci_get_link_state(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - int *up); - /** * enum dpci_dest - DPCI destination types * @DPCI_DEST_NONE: Unassigned destination; The queue is set in parked mod= e diff --git a/drivers/bus/fslmc/mc/fsl_dpcon.h b/drivers/bus/fslmc/mc/fsl_dp= con.h index fc0430dc1..36dd5f3c1 100644 --- a/drivers/bus/fslmc/mc/fsl_dpcon.h +++ b/drivers/bus/fslmc/mc/fsl_dpcon.h @@ -81,25 +81,6 @@ int dpcon_get_attributes(struct fsl_mc_io *mc_io, uint16_t token, struct dpcon_attr *attr); =20 -/** - * struct dpcon_notification_cfg - Structure representing notification par= ams - * @dpio_id: DPIO object ID; must be configured with a notification channe= l; - * to disable notifications set it to 'DPCON_INVALID_DPIO_ID'; - * @priority: Priority selection within the DPIO channel; valid values - * are 0-7, depending on the number of priorities in that channel - * @user_ctx: User context value provided with each CDAN message - */ -struct dpcon_notification_cfg { - int dpio_id; - uint8_t priority; - uint64_t user_ctx; -}; - -int dpcon_set_notification(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpcon_notification_cfg *cfg); - int dpcon_get_api_version(struct fsl_mc_io *mc_io, uint32_t cmd_flags, uint16_t *major_ver, --=20 2.19.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 29720A0679 for ; Thu, 4 Apr 2019 09:23:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DCF1A4C90; Thu, 4 Apr 2019 09:23:25 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20081.outbound.protection.outlook.com [40.107.2.81]) by dpdk.org (Postfix) with ESMTP id D665034F3 for ; Thu, 4 Apr 2019 09:23:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yn0ITHROfsc88hQP8l9AYrVHxcRtpAJPeGnk/zlMyGw=; b=NrLpGuWxw/GnCJUFidhM1n0b90LXXGdjZl2W0uq+1wwmzCgCeK2jJfVRLzVR0V7n1GTdoTgrV1ku5pj2Mzyil3+jB2OLnSZkB0Go6ZZ4RwgzJXK14NYqjvEQ0snj7NBlfHzml+uCH49wqvhXryGrI6HxRYtIW2w/feJ9Tk9TYf8= Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (20.177.56.80) by VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16; Thu, 4 Apr 2019 07:23:22 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::f198:d57:e38d:30]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::f198:d57:e38d:30%4]) with mapi id 15.20.1750.017; Thu, 4 Apr 2019 07:23:22 +0000 From: Shreyansh Jain To: "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , Shreyansh Jain Thread-Topic: [PATCH v2 1/3] bus/fslmc: cleanup unused firmware code Thread-Index: AQHU6rdJukagw3zUFUqAY243fZW1ZQ== Date: Thu, 4 Apr 2019 07:23:22 +0000 Message-ID: <20190404072335.24555-2-shreyansh.jain@nxp.com> References: <20190403142357.17700-1-shreyansh.jain@nxp.com> <20190404072335.24555-1-shreyansh.jain@nxp.com> In-Reply-To: <20190404072335.24555-1-shreyansh.jain@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.120.0.8] x-mailer: git-send-email 2.19.1 x-clientproxiedby: BM1PR01CA0148.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::18) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:71::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d5fbb8b6-29f2-4998-4c39-08d6b8ce6b4b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR04MB4480; x-ms-traffictypediagnostic: VI1PR04MB4480: x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(136003)(39860400002)(396003)(189003)(199004)(7736002)(446003)(14444005)(6916009)(8936002)(6116002)(6436002)(316002)(4326008)(386003)(5640700003)(66066001)(2501003)(68736007)(25786009)(14454004)(81166006)(54906003)(1076003)(305945005)(50226002)(8676002)(86362001)(11346002)(186003)(476003)(486006)(5660300002)(99286004)(44832011)(71190400001)(6486002)(2351001)(105586002)(106356001)(3846002)(6512007)(52116002)(76176011)(53936002)(26005)(2616005)(6506007)(102836004)(2906002)(97736004)(36756003)(81156014)(71200400001)(256004)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4480; H:VI1PR04MB4688.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: cHDOofgFEujQEJ628NOwvDU5FGfOv9XUjC1SXBuBSbdpEt8nlfF7C/lvG+dR6oynO+px0Ip5+8PCAzsDUlSfoJoxpjzwIuRkrEbZ+4/ozHYviu/nSzUubUbjiplIKR3kifrqA5s9Jt1UGasdBE8ygczN+Fs/aR2hLlmqrMI/VUKEkAR+vrQo5JLiCahU7qzxvdWpOYFDwjwxtf9+0EuK2p4H36mVLCMiHdf+pZM/mm0OHiTaOiRWXqtEMoOxBaNNzg7csfW6xFvCc3BcsUvjTb7kbur/a8My8fEqFCosmBrtNYQ7vLUnUbudOr+YiT3LkCCZsVYiJkhcw5r9fnxshCg1Jv6WdPzSk2eh5G/a9eP879kQBVOZ70bVYTkTCYqlLBSRcDW1+/goWd2bZehhDjzqiTBq1UZnsJKD/+5KUI8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5fbb8b6-29f2-4998-4c39-08d6b8ce6b4b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 07:23:22.6797 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4480 Subject: [dpdk-dev] [PATCH v2 1/3] bus/fslmc: cleanup unused firmware code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190404072322.Id_lb5vjn39gQ-f2YZ633l_4To5hUylXToIz180PiWQ@z> Removes some unused firmware code which was added in last bump of the firmware version. No current features uses these APIs. Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/mc/dpci.c | 75 -------------------------------- drivers/bus/fslmc/mc/dpcon.c | 30 ------------- drivers/bus/fslmc/mc/fsl_dpci.h | 21 --------- drivers/bus/fslmc/mc/fsl_dpcon.h | 19 -------- 4 files changed, 145 deletions(-) diff --git a/drivers/bus/fslmc/mc/dpci.c b/drivers/bus/fslmc/mc/dpci.c index 95edae9d9..2874a6196 100644 --- a/drivers/bus/fslmc/mc/dpci.c +++ b/drivers/bus/fslmc/mc/dpci.c @@ -301,81 +301,6 @@ int dpci_get_attributes(struct fsl_mc_io *mc_io, return 0; } =20 -/** - * dpci_get_peer_attributes() - Retrieve peer DPCI attributes. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCI object - * @attr: Returned peer attributes - * - * Return: '0' on Success; Error code otherwise. - */ -int dpci_get_peer_attributes(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpci_peer_attr *attr) -{ - struct dpci_rsp_get_peer_attr *rsp_params; - struct mc_command cmd =3D { 0 }; - int err; - - /* prepare command */ - cmd.header =3D mc_encode_cmd_header(DPCI_CMDID_GET_PEER_ATTR, - cmd_flags, - token); - - /* send command to mc*/ - err =3D mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params =3D (struct dpci_rsp_get_peer_attr *)cmd.params; - attr->peer_id =3D le32_to_cpu(rsp_params->id); - attr->num_of_priorities =3D rsp_params->num_of_priorities; - - return 0; -} - -/** - * dpci_get_link_state() - Retrieve the DPCI link state. - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCI object - * @up: Returned link state; returns '1' if link is up, '0' otherwise - * - * DPCI can be connected to another DPCI, together they - * create a 'link'. In order to use the DPCI Tx and Rx queues, - * both objects must be enabled. - * - * Return: '0' on Success; Error code otherwise. - */ -int dpci_get_link_state(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - int *up) -{ - struct dpci_rsp_get_link_state *rsp_params; - struct mc_command cmd =3D { 0 }; - int err; - - /* prepare command */ - cmd.header =3D mc_encode_cmd_header(DPCI_CMDID_GET_LINK_STATE, - cmd_flags, - token); - - /* send command to mc*/ - err =3D mc_send_command(mc_io, &cmd); - if (err) - return err; - - /* retrieve response parameters */ - rsp_params =3D (struct dpci_rsp_get_link_state *)cmd.params; - *up =3D dpci_get_field(rsp_params->up, UP); - - return 0; -} - /** * dpci_set_rx_queue() - Set Rx queue configuration * @mc_io: Pointer to MC portal's I/O object diff --git a/drivers/bus/fslmc/mc/dpcon.c b/drivers/bus/fslmc/mc/dpcon.c index 92bd26512..3f6e04b97 100644 --- a/drivers/bus/fslmc/mc/dpcon.c +++ b/drivers/bus/fslmc/mc/dpcon.c @@ -295,36 +295,6 @@ int dpcon_get_attributes(struct fsl_mc_io *mc_io, return 0; } =20 -/** - * dpcon_set_notification() - Set DPCON notification destination - * @mc_io: Pointer to MC portal's I/O object - * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' - * @token: Token of DPCON object - * @cfg: Notification parameters - * - * Return: '0' on Success; Error code otherwise - */ -int dpcon_set_notification(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpcon_notification_cfg *cfg) -{ - struct dpcon_cmd_set_notification *dpcon_cmd; - struct mc_command cmd =3D { 0 }; - - /* prepare command */ - cmd.header =3D mc_encode_cmd_header(DPCON_CMDID_SET_NOTIFICATION, - cmd_flags, - token); - dpcon_cmd =3D (struct dpcon_cmd_set_notification *)cmd.params; - dpcon_cmd->dpio_id =3D cpu_to_le32(cfg->dpio_id); - dpcon_cmd->priority =3D cfg->priority; - dpcon_cmd->user_ctx =3D cpu_to_le64(cfg->user_ctx); - - /* send command to mc*/ - return mc_send_command(mc_io, &cmd); -} - /** * dpcon_get_api_version - Get Data Path Concentrator API version * @mc_io: Pointer to MC portal's DPCON object diff --git a/drivers/bus/fslmc/mc/fsl_dpci.h b/drivers/bus/fslmc/mc/fsl_dpc= i.h index 9af9097e5..cf3d15267 100644 --- a/drivers/bus/fslmc/mc/fsl_dpci.h +++ b/drivers/bus/fslmc/mc/fsl_dpci.h @@ -108,27 +108,6 @@ int dpci_get_attributes(struct fsl_mc_io *mc_io, uint16_t token, struct dpci_attr *attr); =20 -/** - * struct dpci_peer_attr - Structure representing the peer DPCI attributes - * @peer_id: DPCI peer id; if no peer is connected returns (-1) - * @num_of_priorities: The pper's number of receive priorities; determines= the - * number of transmit priorities for the local DPCI object - */ -struct dpci_peer_attr { - int peer_id; - uint8_t num_of_priorities; -}; - -int dpci_get_peer_attributes(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpci_peer_attr *attr); - -int dpci_get_link_state(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - int *up); - /** * enum dpci_dest - DPCI destination types * @DPCI_DEST_NONE: Unassigned destination; The queue is set in parked mod= e diff --git a/drivers/bus/fslmc/mc/fsl_dpcon.h b/drivers/bus/fslmc/mc/fsl_dp= con.h index fc0430dc1..36dd5f3c1 100644 --- a/drivers/bus/fslmc/mc/fsl_dpcon.h +++ b/drivers/bus/fslmc/mc/fsl_dpcon.h @@ -81,25 +81,6 @@ int dpcon_get_attributes(struct fsl_mc_io *mc_io, uint16_t token, struct dpcon_attr *attr); =20 -/** - * struct dpcon_notification_cfg - Structure representing notification par= ams - * @dpio_id: DPIO object ID; must be configured with a notification channe= l; - * to disable notifications set it to 'DPCON_INVALID_DPIO_ID'; - * @priority: Priority selection within the DPIO channel; valid values - * are 0-7, depending on the number of priorities in that channel - * @user_ctx: User context value provided with each CDAN message - */ -struct dpcon_notification_cfg { - int dpio_id; - uint8_t priority; - uint64_t user_ctx; -}; - -int dpcon_set_notification(struct fsl_mc_io *mc_io, - uint32_t cmd_flags, - uint16_t token, - struct dpcon_notification_cfg *cfg); - int dpcon_get_api_version(struct fsl_mc_io *mc_io, uint32_t cmd_flags, uint16_t *major_ver, --=20 2.19.1