msm: pcie: mask Synopsys MSI for PCIe0 on mdmcalifornium
In order for the host to receive Synopsys MSIs from its endpoint, the MSIs need to me masked in the PCIe global interrupt mask register. Therefore, mask all Synopsys MSIs in PCIe bus driver. Change-Id: I3afbe233e3298e98a27e7df59f325cf9969a0ee5 Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
parent
e50765b455
commit
fd84788e99
1 changed files with 27 additions and 4 deletions
|
@ -418,7 +418,22 @@ enum msm_pcie_irq_event {
|
|||
MSM_PCIE_INT_EVT_LINK_UP,
|
||||
MSM_PCIE_INT_EVT_AER_LEGACY,
|
||||
MSM_PCIE_INT_EVT_AER_ERR,
|
||||
MSM_PCIE_INT_EVT_MAX = 15,
|
||||
MSM_PCIE_INT_EVT_PME_LEGACY,
|
||||
MSM_PCIE_INT_EVT_PLS_PME,
|
||||
MSM_PCIE_INT_EVT_INTD,
|
||||
MSM_PCIE_INT_EVT_INTC,
|
||||
MSM_PCIE_INT_EVT_INTB,
|
||||
MSM_PCIE_INT_EVT_INTA,
|
||||
MSM_PCIE_INT_EVT_EDMA,
|
||||
MSM_PCIE_INT_EVT_MSI_0,
|
||||
MSM_PCIE_INT_EVT_MSI_1,
|
||||
MSM_PCIE_INT_EVT_MSI_2,
|
||||
MSM_PCIE_INT_EVT_MSI_3,
|
||||
MSM_PCIE_INT_EVT_MSI_4,
|
||||
MSM_PCIE_INT_EVT_MSI_5,
|
||||
MSM_PCIE_INT_EVT_MSI_6,
|
||||
MSM_PCIE_INT_EVT_MSI_7,
|
||||
MSM_PCIE_INT_EVT_MAX = 30,
|
||||
};
|
||||
|
||||
enum msm_pcie_gpio {
|
||||
|
@ -3919,9 +3934,17 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)
|
|||
msm_pcie_write_reg(dev->parf, PCIE20_PARF_INT_ALL_MASK, 0);
|
||||
|
||||
msm_pcie_write_mask(dev->parf + PCIE20_PARF_INT_ALL_MASK, 0,
|
||||
MSM_PCIE_INT_EVT_LINK_DOWN |
|
||||
MSM_PCIE_INT_EVT_AER_LEGACY |
|
||||
MSM_PCIE_INT_EVT_AER_ERR);
|
||||
BIT(MSM_PCIE_INT_EVT_LINK_DOWN) |
|
||||
BIT(MSM_PCIE_INT_EVT_AER_LEGACY) |
|
||||
BIT(MSM_PCIE_INT_EVT_AER_ERR) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_0) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_1) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_2) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_3) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_4) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_5) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_6) |
|
||||
BIT(MSM_PCIE_INT_EVT_MSI_7));
|
||||
|
||||
PCIE_DBG(dev, "PCIe: RC%d: PCIE20_PARF_INT_ALL_MASK: 0x%x\n",
|
||||
dev->rc_idx,
|
||||
|
|
Loading…
Add table
Reference in a new issue