Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6936b49c authored by Jia Ding's avatar Jia Ding Committed by Gerrit - the friendly Code Review server
Browse files

cnss2: set iova_stop to U64_MAX



When cnss2 driver is compiled as kernel loadable module,
compiler throws errors for undefined
memblock_start_of_DRAM and memblock_end_of_DRAM.

When SMMU s1 is not enabled, iova_start and iova_stop
are physical start and stop address of DDR. Thus setting
iova_stop to U64_MAX to assume all addresses are valid.

Change-Id: I910653bd45d78c8a8e78af08c277df03f9fdda01
Signed-off-by: default avatarjiad <jiad@codeaurora.org>
parent d8d98b20
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2714,8 +2714,9 @@ static int cnss_pci_register_mhi(struct cnss_pci_data *pci_priv)
		mhi_ctrl->iova_stop = pci_priv->smmu_iova_start +
					pci_priv->smmu_iova_len;
	} else {
		/* assume all addresses are valid */
		mhi_ctrl->iova_start = 0;
		mhi_ctrl->iova_stop = 0;
		mhi_ctrl->iova_stop = (dma_addr_t)U64_MAX;
	}

	mhi_ctrl->link_status = cnss_mhi_link_status;