Re: [PATCH] Fix IMX PWM period setting

From: Russell King (Oracle)

Date: Thu Oct 30 2025 - 06:40:16 EST


On Thu, Oct 30, 2025 at 08:51:20AM +0000, Krebs, Olaf wrote:
> From: Olaf krebs <olaf.krebs@xxxxxxxxxxxxxxxx>
>
> We use 3 PWM channels to control an RGB LED. Without this patch we get an error:

Not build-tested.

> - if (tpm->user_count > 1)
> + if ((tpm->user_count > 1) && (tmp->real_period != 0))

"tmp" vs "tpm". As there's no variable called "tmp" in this function...

--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!