diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-08-09 16:38:11 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-11 19:54:22 +1000 |
commit | ced031a0002f4ddee7e06a97a6b4fe47830b3a5c (patch) | |
tree | 85240d8d35cd3d97f5760ca0db7e5a6f6e47c771 /hw | |
parent | f605be73d7b1c4a32a66824d3c02470f540636bc (diff) | |
download | skiboot-ced031a0002f4ddee7e06a97a6b4fe47830b3a5c.zip skiboot-ced031a0002f4ddee7e06a97a6b4fe47830b3a5c.tar.gz skiboot-ced031a0002f4ddee7e06a97a6b4fe47830b3a5c.tar.bz2 |
psi: Remove psi->working
I was only ever set to true
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/fsp/fsp.c | 2 | ||||
-rw-r--r-- | hw/psi.c | 14 |
2 files changed, 1 insertions, 15 deletions
diff --git a/hw/fsp/fsp.c b/hw/fsp/fsp.c index 26cad63..58219a0 100644 --- a/hw/fsp/fsp.c +++ b/hw/fsp/fsp.c @@ -1897,8 +1897,6 @@ static void fsp_update_links_states(struct fsp *fsp) for (i = 0; i < fsp->iopath_count; i++) { fiop = &fsp->iopath[i]; if (!fiop->psi) - continue; - if (!fiop->psi->working) fiop->state = fsp_path_bad; else if (fiop->psi->active) { fsp->active_iopath = i; @@ -179,7 +179,7 @@ static void psi_link_poll(void *data __unused) list_for_each(&psis, psi, list) { u64 val; - if (psi->active || !psi->working) + if (psi->active) continue; val = in_be64(psi->regs + PSIHB_CR); @@ -220,9 +220,6 @@ static void psi_link_poll(void *data __unused) void psi_enable_fsp_interrupt(struct psi *psi) { - if (!psi->working) - return; - /* Enable FSP interrupts in the GXHB */ lock(&psi_lock); out_be64(psi->regs + PSIHB_CR, @@ -350,9 +347,6 @@ static int64_t psi_p7_set_xive(struct irq_source *is, uint32_t isn __unused, struct psi *psi = is->data; uint64_t xivr; - if (!psi->working) - return OPAL_HARDWARE; - /* Populate the XIVR */ xivr = (uint64_t)server << 40; xivr |= (uint64_t)priority << 32; @@ -369,9 +363,6 @@ static int64_t psi_p7_get_xive(struct irq_source *is, uint32_t isn __unused, struct psi *psi = is->data; uint64_t xivr; - if (!psi->working) - return OPAL_HARDWARE; - /* Read & decode the XIVR */ xivr = in_be64(psi->regs + PSIHB_XIVR); @@ -917,7 +908,6 @@ static struct psi *psi_probe_p7(struct proc_chip *chip, u64 base) psi = alloc_psi(base); if (!psi) return NULL; - psi->working = true; rc = val >> 36; /* Bits 0:1 = 0x00; 2:27 Bridge BAR... */ rc <<= 20; /* ... corresponds to bits 18:43 of base addr */ psi->regs = (void *)rc; @@ -944,7 +934,6 @@ static struct psi *psi_probe_p8(struct proc_chip *chip, u64 base) psi = alloc_psi(base); if (!psi) return NULL; - psi->working = true; psi->regs = (void *)(val & ~PSIHB_XSCOM_P8_HBBAR_EN); } else printf("PSI[0x%03x]: Working chip not found\n", chip->id); @@ -975,7 +964,6 @@ static struct psi *psi_probe_p9(struct proc_chip *chip, u64 base) psi = alloc_psi(base); if (!psi) return NULL; - psi->working = true; psi->regs = (void *)(val & ~PSIHB_XSCOM_P9_HBBAR_EN); psi->interrupt = xive_alloc_hw_irqs(psi->chip_id, P9_PSI_NUM_IRQS, 16); |