pci: msm: Dump cesta registers only when cesta is enabled
Adding a check in the cesta register dump API to bail out of the API when cesta is not enabled. Change-Id: Ib17dcc95ec82d3962f32ce700be64c8c8440bd8f Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
This commit is contained in:
parent
3cfea26f2f
commit
715fe3e4ad
1 changed files with 3 additions and 0 deletions
|
|
@ -1697,6 +1697,9 @@ static void pcie_crm_dump(struct msm_pcie_dev_t *dev)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (!dev->pcie_sm)
|
||||
return;
|
||||
|
||||
ret = crm_dump_regs("pcie_crm");
|
||||
if (ret)
|
||||
PCIE_DUMP(dev, "PCIe: RC%d Error dumping crm regs %d\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue