]> git.dujemihanovic.xyz Git - u-boot.git/commit
pwm: imx: Don't drop the enable bit once set
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 10 Sep 2024 09:13:59 +0000 (11:13 +0200)
committerFabio Estevam <festevam@gmail.com>
Wed, 11 Sep 2024 20:02:36 +0000 (17:02 -0300)
commit5748aa1e372d2db3db6bf3e863f4571bf2ffedb9
treeb7824d825095d0259d01fe807fa4fb16e45d9a75
parent4aea3110aba9238fbcb6c4a5273abce4cb176691
pwm: imx: Don't drop the enable bit once set

Changing the duty-cycle should not blindly override (and clear) the
enable (EN) bit if it has already been set. For instance, a PWM
backlight can be enabled and set to a specific intensity using two
operations. The order of these operations should not matter.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
drivers/pwm/pwm-imx.c