tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: 21f8134c92d1f11ecca74291df672905612337ef
commit: 54852266a780a8cf61fb8377e7c0e98a7bd91342 [9540/13994] PCI: j721e: Add PCIe support
for j7200
config: i386-randconfig-m021-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/pci/controller/cadence/pci-j721e.c:149 j721e_pcie_v1_legacy_irq_handler() warn:
inconsistent indenting
vim +149 drivers/pci/controller/cadence/pci-j721e.c
54852266a780a8 Kishon Vijay Abraham I 2020-07-08 133
54852266a780a8 Kishon Vijay Abraham I 2020-07-08 134 static void
j721e_pcie_v1_legacy_irq_handler(struct irq_desc *desc)
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 135 {
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 136 int i;
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 137 u32 reg;
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 138 int virq;
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 139 struct j721e_pcie *pcie =
irq_desc_get_handler_data(desc);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 140 struct irq_chip *chip =
irq_desc_get_chip(desc);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 141
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 142 chained_irq_enter(chip, desc);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 143
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 144 for (i = 0; i < PCI_NUM_INTX;
i++) {
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 145 reg = j721e_pcie_intd_readl(pcie,
STATUS_REG_SYS_0);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 146 if (!(reg & INTx_EN(i)))
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 147 continue;
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 148
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 @149 virq =
irq_find_mapping(pcie->legacy_irq_domain, 3 - i);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 150 generic_handle_irq(virq);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 151 j721e_pcie_intd_writel(pcie,
STATUS_CLR_REG_SYS_0, INTx_EN(i));
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 152 j721e_pcie_intd_writel(pcie,
EOI_REG, 3 - i);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 153 }
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 154
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 155 chained_irq_exit(chip, desc);
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 156 }
c577d6c429a54c Kishon Vijay Abraham I 2020-02-07 157
:::::: The code at line 149 was first introduced by commit
:::::: c577d6c429a54c2aa978e90f5cf5c2fb332e5e63 PCI: j721e: Add PCI legacy interrupt
support for J721E
:::::: TO: Kishon Vijay Abraham I <kishon(a)ti.com>
:::::: CC: Sekhar Nori <nsekhar(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org