svn commit: r366138 - head/sys/arm/allwinner
Andriy Gapon
avg at FreeBSD.org
Fri Sep 25 07:39:42 UTC 2020
Author: avg
Date: Fri Sep 25 07:39:41 2020
New Revision: 366138
URL: https://svnweb.freebsd.org/changeset/base/366138
Log:
aw_pwm: remove the busy bit check
The bit seems to always be set on my hardware, H3.
However, programming the hardware seems to work just fine.
MFC after: 3 weeks
Modified:
head/sys/arm/allwinner/aw_pwm.c
Modified: head/sys/arm/allwinner/aw_pwm.c
==============================================================================
--- head/sys/arm/allwinner/aw_pwm.c Fri Sep 25 07:39:14 2020 (r366137)
+++ head/sys/arm/allwinner/aw_pwm.c Fri Sep 25 07:39:41 2020 (r366138)
@@ -286,10 +286,6 @@ aw_pwm_channel_config(device_t dev, u_int channel, u_i
}
reg = AW_PWM_READ(sc, AW_PWM_CTRL);
- if (reg & AW_PWM_CTRL_PERIOD_BUSY) {
- device_printf(sc->dev, "pwm busy\n");
- return (EBUSY);
- }
/* Write the prescalar */
reg &= ~AW_PWM_CTRL_PRESCALE_MASK;
More information about the svn-src-all
mailing list