mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
PCI: dw: rockchip: Move PCIE_CLIENT_INTR_MASK to configuration process.
Change-Id: Id90ddc7c1280e8f01974380d5d2ebebbe12bec67 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -1372,14 +1372,6 @@ static int rk_pcie_init_irq_and_wq(struct rk_pcie *rk_pcie, struct platform_devi
|
||||
struct device *dev = rk_pcie->pci->dev;
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* Misc interrupts was masked by default. However, they will be
|
||||
* unmasked by FW before jumpping into kernel. Mask all misc interrupts,
|
||||
* as we don't need to ack them before registering irq. And they will be
|
||||
* unmasked later.
|
||||
*/
|
||||
rk_pcie_writel_apb(rk_pcie, PCIE_CLIENT_INTR_MASK, 0xffffffff);
|
||||
|
||||
ret = rk_pcie_request_sys_irq(rk_pcie, pdev);
|
||||
if (ret) {
|
||||
dev_err(dev, "pcie irq init failed\n");
|
||||
@@ -1494,6 +1486,14 @@ static int rk_pcie_host_config(struct rk_pcie *rk_pcie)
|
||||
|
||||
rk_pcie_set_rc_mode(rk_pcie);
|
||||
|
||||
/*
|
||||
* Misc interrupts was masked by default. However, they will be
|
||||
* unmasked by FW before jumpping into kernel. Mask all misc interrupts,
|
||||
* as we don't need to ack them before registering irq. And they will be
|
||||
* unmasked later.
|
||||
*/
|
||||
rk_pcie_writel_apb(rk_pcie, PCIE_CLIENT_INTR_MASK, 0xffffffff);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user