Skip to content

Commit 3041820

Browse files
committed
Merge branch 'pci/controller/ixp4xx'
- Guard ARM32-specific hook_fault_code() with ifdefs so we can build test on other arches (Bjorn Helgaas) * pci/controller/ixp4xx: PCI: ixp4xx: Guard ARM32-specific hook_fault_code()
2 parents dddd612 + d2713df commit 3041820

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

drivers/pci/controller/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ config PCIE_HISI_ERR
146146

147147
config PCI_IXP4XX
148148
bool "Intel IXP4xx PCI controller"
149-
depends on ARM && OF
149+
depends on OF
150150
depends on ARCH_IXP4XX || COMPILE_TEST
151151
default ARCH_IXP4XX
152152
help

drivers/pci/controller/pci-ixp4xx.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ static u32 ixp4xx_crp_byte_lane_enable_bits(u32 n, int size)
214214
return 0xffffffff;
215215
}
216216

217+
#ifdef CONFIG_ARM
217218
static int ixp4xx_crp_read_config(struct ixp4xx_pci *p, int where, int size,
218219
u32 *value)
219220
{
@@ -251,6 +252,7 @@ static int ixp4xx_crp_read_config(struct ixp4xx_pci *p, int where, int size,
251252

252253
return PCIBIOS_SUCCESSFUL;
253254
}
255+
#endif
254256

255257
static int ixp4xx_crp_write_config(struct ixp4xx_pci *p, int where, int size,
256258
u32 value)
@@ -470,6 +472,7 @@ static int ixp4xx_pci_parse_map_dma_ranges(struct ixp4xx_pci *p)
470472
return 0;
471473
}
472474

475+
#ifdef CONFIG_ARM
473476
/* Only used to get context for abort handling */
474477
static struct ixp4xx_pci *ixp4xx_pci_abort_singleton;
475478

@@ -509,6 +512,7 @@ static int ixp4xx_pci_abort_handler(unsigned long addr, unsigned int fsr,
509512

510513
return 0;
511514
}
515+
#endif
512516

513517
static int __init ixp4xx_pci_probe(struct platform_device *pdev)
514518
{
@@ -555,10 +559,12 @@ static int __init ixp4xx_pci_probe(struct platform_device *pdev)
555559
dev_info(dev, "controller is in %s mode\n",
556560
p->host_mode ? "host" : "option");
557561

562+
#ifdef CONFIG_ARM
558563
/* Hook in our fault handler for PCI errors */
559564
ixp4xx_pci_abort_singleton = p;
560565
hook_fault_code(16+6, ixp4xx_pci_abort_handler, SIGBUS, 0,
561566
"imprecise external abort");
567+
#endif
562568

563569
ret = ixp4xx_pci_parse_map_ranges(p);
564570
if (ret)

0 commit comments

Comments
 (0)