aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-07 17:46:19 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-07 17:46:19 +0000
commit3cebca152b183a87c48a3d36610569f2b4865261 (patch)
tree79e26c22de3445646605c23d8df1a186c8fd0ae0
parentd7224a53b392ec6e230749d9fb42d8826d305d08 (diff)
downloadsrc-3cebca152b183a87c48a3d36610569f2b4865261.tar.gz
src-3cebca152b183a87c48a3d36610569f2b4865261.zip
bnhd: Write out updated resource dependencies from the table.
The driver parsed the table to update the relevant resource map registers, but failed to write the new register value after computing it. Reported by: -Wunused-but-set-variable Reviewed by: landonf, imp Differential Revision: https://reviews.freebsd.org/D34814
-rw-r--r--sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c b/sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
index 33300ff77b2c..85f0495f321e 100644
--- a/sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
+++ b/sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
@@ -1091,7 +1091,8 @@ bhnd_pmu_res_init(struct bhnd_pmu_softc *sc)
break;
}
-
+ BHND_PMU_WRITE_4(sc, BHND_PMU_RES_DEP_MASK,
+ depend_mask);
}
}