aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-05-02 11:45:19 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-05-02 11:45:19 +1000
commit472e8da46b6d78441e11db7442f6b0d0bd40b2bc (patch)
tree5d7d590197e1a0d8b3b99a6e0cb027b702d3f67e
parentbac233b895a5979c0806ef4f271b348da02399eb (diff)
downloadskiboot-472e8da46b6d78441e11db7442f6b0d0bd40b2bc.zip
skiboot-472e8da46b6d78441e11db7442f6b0d0bd40b2bc.tar.gz
skiboot-472e8da46b6d78441e11db7442f6b0d0bd40b2bc.tar.bz2
PHB3: Add comments for PCI vendor/device ids rather than plain numbers
I can't keep all the PCI vendor IDs in my head, so use some text Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/phb3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 3c595eb..dbc109b 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -505,7 +505,7 @@ static void phb3_check_device_quirks(struct phb *phb, struct pci_device *dev)
* adjust some settings for performances
*/
xscom_read(p->chip_id, p->pe_xscom + 0x0b, &modectl);
- if (vendor == 0x15b3 &&
+ if (vendor == 0x15b3 && /* Mellanox */
(device == 0x1003 || /* Travis3-EN (CX3) */
device == 0x1011 || /* HydePark (ConnectIB) */
device == 0x1013)) { /* GlacierPark (CX4) */
@@ -518,7 +518,8 @@ static void phb3_check_device_quirks(struct phb *phb, struct pci_device *dev)
xscom_write(p->chip_id, p->pe_xscom + 0x0b, modectl);
} else if (dev->primary_bus == 0) {
- if (vendor == 0x1014 && device == 0x03dc) {
+ if (vendor == 0x1014 && /* IBM */
+ device == 0x03dc) { /* P8/P8E/P8NVL Root port */
uint32_t pref_hi, tmp;
pci_cfg_read32(phb, dev->bdfn,