All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wasim Khan <wasim.khan@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/8] pci: layerscape: Add stream_id_cur field to ls_pcie structure
Date: Fri, 18 Oct 2019 14:08:25 +0000	[thread overview]
Message-ID: <1571407688-22961-3-git-send-email-wasim.khan@nxp.com> (raw)
In-Reply-To: <1571407688-22961-1-git-send-email-wasim.khan@nxp.com>

Add stream_id_cur field to ls_pcie structure and initialize
it with 0 for all pcie controllers. This field will be used
for streamId calculation.

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
---
 drivers/pci/pcie_layerscape.c | 3 ++-
 drivers/pci/pcie_layerscape.h | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c
index db1375a..02f3825 100644
--- a/drivers/pci/pcie_layerscape.c
+++ b/drivers/pci/pcie_layerscape.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2017 NXP
+ * Copyright 2017, 2019 NXP
  * Copyright 2014-2015 Freescale Semiconductor, Inc.
  * Layerscape PCIe driver
  */
@@ -339,6 +339,7 @@ static void ls_pcie_setup_ctrl(struct ls_pcie *pcie)
 	dbi_writel(pcie, 0, PCIE_DBI_RO_WR_EN);
 
 	ls_pcie_disable_bars(pcie);
+	pcie->stream_id_cur = 0;
 }
 
 static void ls_pcie_ep_setup_atu(struct ls_pcie *pcie)
diff --git a/drivers/pci/pcie_layerscape.h b/drivers/pci/pcie_layerscape.h
index ddfbba6..60efe89 100644
--- a/drivers/pci/pcie_layerscape.h
+++ b/drivers/pci/pcie_layerscape.h
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2017 NXP
+ * Copyright 2017, 2019 NXP
  * Copyright 2014-2015 Freescale Semiconductor, Inc.
  * Layerscape PCIe driver
  */
@@ -144,6 +144,7 @@ struct ls_pcie {
 	bool big_endian;
 	bool enabled;
 	int next_lut_index;
+	int stream_id_cur;
 	int mode;
 };
 
-- 
2.7.4

  parent reply	other threads:[~2019-10-18 14:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18 14:08 [U-Boot] [PATCH 0/8] Enablement of PCIe controller for LX2-Rev2 Wasim Khan
2019-10-18 14:08 ` [U-Boot] [PATCH 1/8] driver/pci : enable pcie layerscape code for pcie gen4 code Wasim Khan
2019-10-21  5:34   ` Priyanka Jain
2019-10-18 14:08 ` Wasim Khan [this message]
2019-10-21  5:36   ` [U-Boot] [PATCH 2/8] pci: layerscape: Add stream_id_cur field to ls_pcie structure Priyanka Jain
2019-10-18 14:08 ` [U-Boot] [PATCH 3/8] pci: layerscape: Update API names for layerscape fixup Wasim Khan
2019-10-21  5:42   ` Priyanka Jain
2019-10-21  6:19     ` Wasim Khan
2019-10-18 14:08 ` [U-Boot] [PATCH 4/8] pci: layerscape: Update API names for layerscape gen4 fixup Wasim Khan
2019-10-18 14:08 ` [U-Boot] [PATCH 5/8] armv8: lx2160a: Add FSL_PEX_STREAM_ID_END for LX2160A Wasim Khan
2019-10-18 14:08 ` [U-Boot] [PATCH 6/8] pci: layerscape: Common device tree fixup for NXP SoCs Wasim Khan
2019-10-18 14:08 ` [U-Boot] [PATCH 7/8] pci: layerscape: Move streamId allocation to common device tree fixup Wasim Khan
2019-10-18 14:08 ` [U-Boot] [PATCH 8/8] pci: layerscape: device tree fixup based on SoC and Version Wasim Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1571407688-22961-3-git-send-email-wasim.khan@nxp.com \
    --to=wasim.khan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.