aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahesh Salgaonkar <mahesh@linux.ibm.com>2021-02-09 14:15:41 +0530
committerVasant Hegde <hegdevasant@linux.vnet.ibm.com>2021-02-12 11:08:54 +0530
commitc3e53f7c950f09bbde78c5f05cbfb460fbd51447 (patch)
tree8d26da2f2e9f082b560a6aef9a71faa6f5f9c481
parent15b93a301509ba7813343540e25b47ba395674b9 (diff)
downloadskiboot-c3e53f7c950f09bbde78c5f05cbfb460fbd51447.zip
skiboot-c3e53f7c950f09bbde78c5f05cbfb460fbd51447.tar.gz
skiboot-c3e53f7c950f09bbde78c5f05cbfb460fbd51447.tar.bz2
phb4/5: Fix printing of device secondary status register.
The commit e73cf72d1f97 ("phb4: make endian-clean") accidently missed printing correct value for PCI device secondary status register. [ 1654.399387394,3] PHB#0033[3:3]: devCmdStatus = 00100107 [ 1654.399389575,3] PHB#0033[3:3]: devSecStatus = 00100107 after this patch: [ 1620.415289504,3] PHB#0033[3:3]: devCmdStatus = 00100107 [ 1620.415291622,3] PHB#0033[3:3]: devSecStatus = 00002000 Fixes: e73cf72d ("phb4: make endian-clean") Signed-off-by: Mahesh Salgaonkar <mahesh@linux.ibm.com> Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r--hw/phb4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 5563415..73ee03d 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -1867,7 +1867,7 @@ static void phb4_read_phb_status(struct phb4 *p,
phb4_pcicfg_read32(&p->phb, 0, PCI_CFG_CMD, &__32);
stat->devCmdStatus = cpu_to_be32(__32);
phb4_pcicfg_read16(&p->phb, 0, PCI_CFG_SECONDARY_STATUS, &__16);
- stat->devSecStatus = cpu_to_be32(__32);
+ stat->devSecStatus = cpu_to_be32(__16);
/* Grab a bunch of AER regs */
phb4_pcicfg_read32(&p->phb, 0, p->aercap + PCIECAP_AER_RERR_STA, &__32);