git: 2febf35c9020 - stable/14 - bcm2835_pwm: Fix dev.pwm.0.ratio2 register
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Oct 2026 00:48:02 UTC
The branch stable/14 has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=2febf35c90207493026ef16014b353548a375d0f
commit 2febf35c90207493026ef16014b353548a375d0f
Author: Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2026-09-15 20:44:12 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-10-04 00:47:55 +0000
bcm2835_pwm: Fix dev.pwm.0.ratio2 register
A typo in the sysctl for RPI0 PWM channel 2 was causing it to
write to the wrong register, leaving it misconfigured if used.
PR: 298301
MFC after: 3 days (problem reported on 14.4)
Reviewed by: adrian
Reported by: Attila Kover <attila.kover@guardian.co.uk>
Differential Revision: https://reviews.freebsd.org/D59644
(cherry picked from commit 32878e64e687a848fceb710ab9b45e396f27db3f)
---
sys/arm/broadcom/bcm2835/bcm2835_pwm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_pwm.c b/sys/arm/broadcom/bcm2835/bcm2835_pwm.c
index 3a6a9dd6e1dc..1b1962907c2d 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_pwm.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_pwm.c
@@ -324,7 +324,7 @@ bcm_pwm_ratio2_proc(SYSCTL_HANDLER_ARGS)
if (r > sc->period2) // XXX >= ?
return (EINVAL);
sc->ratio2 = r;
- W_DAT(sc, sc->ratio2);
+ W_DAT2(sc, sc->ratio2);
return (0);
}