aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2016-08-05 13:46:26 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-29 14:30:38 +1000
commit0c75bd5ffee6f2c6ada5ce5069eb092bf071d5c6 (patch)
treeb7def8cf07d8e3c8cc74a7ab8126cd1337a94fc0 /hw
parent90cd9104edd33a4a0869e38e2936f1468c7e58ea (diff)
downloadskiboot-0c75bd5ffee6f2c6ada5ce5069eb092bf071d5c6.zip
skiboot-0c75bd5ffee6f2c6ada5ce5069eb092bf071d5c6.tar.gz
skiboot-0c75bd5ffee6f2c6ada5ce5069eb092bf071d5c6.tar.bz2
phb4: Trivial whitespace fixes
Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb4.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index d3e7620..866f094 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -365,7 +365,7 @@ static int64_t phb4_pcicfg_read(struct phb4 *p, uint32_t bdfn,
#define PHB4_PCI_CFG_READ(size, type) \
static int64_t phb4_pcicfg_read##size(struct phb *phb, uint32_t bdfn, \
- uint32_t offset, type *data) \
+ uint32_t offset, type *data) \
{ \
struct phb4 *p = phb_to_phb4(phb); \
\
@@ -440,12 +440,12 @@ static int64_t phb4_pcicfg_write(struct phb4 *p, uint32_t bdfn,
}
#endif
}
- return OPAL_SUCCESS;
+ return OPAL_SUCCESS;
}
#define PHB4_PCI_CFG_WRITE(size, type) \
static int64_t phb4_pcicfg_write##size(struct phb *phb, uint32_t bdfn, \
- uint32_t offset, type data) \
+ uint32_t offset, type data) \
{ \
struct phb4 *p = phb_to_phb4(phb); \
\
@@ -1534,7 +1534,7 @@ static void phb4_read_phb_status(struct phb4 *p,
static int64_t phb4_set_pe(struct phb *phb,
uint64_t pe_num,
- uint64_t bdfn,
+ uint64_t bdfn,
uint8_t bcompare,
uint8_t dcompare,
uint8_t fcompare,
@@ -1951,10 +1951,10 @@ static int64_t phb4_pfreset(struct pci_slot *slot)
/* CAPP FPGA requires 1s to flash before polling link */
return pci_slot_set_sm_timeout(slot, secs_to_tb(1));
case PHB4_SLOT_PFRESET_DEASSERT_DELAY:
-#if 0 /* PHB3 does a Hreset here. It's unnecessary I think and it's
- causing problems with the simulator croc model so don't do
- it until I figure out Gavin's reasons
- */
+#if 0 /* PHB3 does a Hreset here. It's unnecessary I think and it's
+ * causing problems with the simulator croc model so don't do
+ * it until I figure out Gavin's reasons
+ */
pci_slot_set_state(slot, PHB4_SLOT_HRESET_START);
return slot->ops.hreset(slot);
#else
@@ -2172,10 +2172,10 @@ static int64_t phb4_eeh_freeze_clear(struct phb *phb, uint64_t pe_number,
}
static int64_t phb4_eeh_freeze_set(struct phb *phb, uint64_t pe_number,
- uint64_t eeh_action_token)
+ uint64_t eeh_action_token)
{
- struct phb4 *p = phb_to_phb4(phb);
- uint64_t data;
+ struct phb4 *p = phb_to_phb4(phb);
+ uint64_t data;
if (p->state == PHB4_STATE_BROKEN)
return OPAL_HARDWARE;
@@ -2256,7 +2256,7 @@ static int64_t phb4_eeh_next_error(struct phb *phb,
break;
}
}
- }
+ }
/* Mapping errors */
if (phb4_err_pending(p)) {
@@ -2312,7 +2312,7 @@ static int64_t phb4_eeh_next_error(struct phb *phb,
phb4_set_err_pending(p, false);
}
- break;
+ break;
case PHB4_ERR_CLASS_INF:
*pci_error_type = OPAL_EEH_PHB_ERROR;
*severity = OPAL_EEH_SEV_INF;
@@ -2535,7 +2535,7 @@ static bool phb4_init_rc_cfg(struct phb4 *p)
PCIECAP_AER_UE_POISON_TLP |
PCIECAP_AER_UE_COMPL_TIMEOUT |
PCIECAP_AER_UE_COMPL_ABORT);
-
+
/* Clear all CE status */
phb4_pcicfg_write32(&p->phb, 0, aercap + PCIECAP_AER_CE_STATUS,
0xffffffff);
@@ -2719,7 +2719,7 @@ static void phb4_init_hw(struct phb4 *p, bool first_init)
phb4_init_errors(p);
/* Init_121..122 : Wait for link
- * NOTE: At this point the spec waits for the link to come up. We
+ * NOTE: At this point the spec waits for the link to come up. We
* don't bother as we are doing a PERST soon.
*/
@@ -2727,7 +2727,7 @@ static void phb4_init_hw(struct phb4 *p, bool first_init)
// XXX FIXME learn CAPI :-(
/* Init_124 : Setup PCI command/status on root complex
- * I don't know why the spec does this now and not earlier, so
+ * I don't know why the spec does this now and not earlier, so
* to be sure to get it right we might want to move it to the freset
* state machine, though the generic PCI layer will probably do
* this anyway (ie, enable MEM, etc... in the RC)