The PCIe clients will utilize the original MSI address instead of
mapped local address when active config is enabled. The change here
provides the original address to the clients.
Change-Id: I0d35fa9508d7c3ec2e97bd7d61754974e798bf8a
Signed-off-by: Yan He <yanhe@codeaurora.org>
msi->start, 0, msi->end,
lower, upper);
- cfg->lower = msi->start + (lower & 0xfff);
- cfg->upper = 0;
+ if (ep_pcie_dev.active_config) {
+ cfg->lower = lower;
+ cfg->upper = upper;
+ } else {
+ cfg->lower = msi->start + (lower & 0xfff);
+ cfg->upper = 0;
+ }
cfg->data = data;
cfg->msg_num = (cap >> 20) & 0x7;
if ((lower != ep_pcie_dev.msi_cfg.lower)