mhi: cntrl: Update device MMIO region length for MHI core

It can be used by MHI core to have a sanity check for
bhi and bhie offsets reported by device.

Change-Id: Iabcdc53a4c1f7c951721cbec0b1d7285cf19cd72
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
This commit is contained in:
Manu Gautam 2020-05-18 16:39:55 +05:30
parent b7b624962b
commit d9e89f305b
2 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,7 @@ static int mhi_init_pci_dev(struct mhi_controller *mhi_cntrl)
MHI_CNTRL_ERR("Error ioremap region\n");
goto error_ioremap;
}
mhi_cntrl->len = len;
ret = pci_alloc_irq_vectors(pci_dev, mhi_cntrl->msi_required,
mhi_cntrl->msi_required, PCI_IRQ_MSI);

View File

@ -260,6 +260,7 @@ struct mhi_controller {
/* mmio base */
phys_addr_t base_addr;
unsigned int len;
void __iomem *regs;
void __iomem *bhi;
void __iomem *bhie;