The branch main has been updated by ziaee:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=32878e64e687a848fceb710ab9b45e396f27db3f

commit 32878e64e687a848fceb710ab9b45e396f27db3f
Author:     Alexander Ziaee <[email protected]>
AuthorDate: 2026-09-15 20:44:12 +0000
Commit:     Alexander Ziaee <[email protected]>
CommitDate: 2026-09-15 21:01:24 +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 <[email protected]>
    Differential Revision:  https://reviews.freebsd.org/D59644
---
 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 ad794a6d20ed..37aef1aea414 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_pwm.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_pwm.c
@@ -323,7 +323,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);
 }
 

Reply via email to