Commit 329c68b2 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Make lack of interrupt-map-* a fatal error on SUN4V.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent abd92b2d
...@@ -954,19 +954,20 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, int prom_node, u32 ...@@ -954,19 +954,20 @@ static void pci_sun4v_pbm_init(struct pci_controller_info *p, int prom_node, u32
err = prom_getproperty(prom_node, "interrupt-map", err = prom_getproperty(prom_node, "interrupt-map",
(char *)pbm->pbm_intmap, (char *)pbm->pbm_intmap,
sizeof(pbm->pbm_intmap)); sizeof(pbm->pbm_intmap));
if (err != -1) { if (err == 0 || err == -1) {
pbm->num_pbm_intmap = (err / sizeof(struct linux_prom_pci_intmap)); prom_printf("%s: Fatal error, no interrupt-map property.\n",
err = prom_getproperty(prom_node, "interrupt-map-mask", pbm->name);
(char *)&pbm->pbm_intmask, prom_halt();
sizeof(pbm->pbm_intmask)); }
if (err == -1) {
prom_printf("%s: Fatal error, no " pbm->num_pbm_intmap = (err / sizeof(struct linux_prom_pci_intmap));
"interrupt-map-mask.\n", pbm->name); err = prom_getproperty(prom_node, "interrupt-map-mask",
prom_halt(); (char *)&pbm->pbm_intmask,
} sizeof(pbm->pbm_intmask));
} else { if (err == 0 || err == -1) {
pbm->num_pbm_intmap = 0; prom_printf("%s: Fatal error, no interrupt-map-mask.\n",
memset(&pbm->pbm_intmask, 0, sizeof(pbm->pbm_intmask)); pbm->name);
prom_halt();
} }
pci_sun4v_get_bus_range(pbm); pci_sun4v_get_bus_range(pbm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment