From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E410D167FC for ; Fri, 9 Jan 2026 10:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:From:Cc:To:Subject: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=majFu1gUeYTBDSM9NhJNUHZPL3AzMdnyDLoZ7eldPZw=; b=vxpt1Ie/MqpBhOtRZJwbcCv4tA DM7JcWmkys+8HpTjA4Q1OEbF9CzlBV4p5NkASKmzm4CtLxP6OGWWU+ANQvgXAvpitQ/2BLgW+j1Yx 2ixhzE8Bur2B1GwfXf4LgqRN1hHxDXbmCygZ74Vb+VXq8vRklUh7yVU5p3A8+LOgsVW6K+13zQC3h HRzkoEvAFC5lM+Ll/lXK7/0h7biLczBcjcZ90qXAbfbggMmWTdZiIQwaA4XalSW0nYjwEUCZD36lP MBnziCU9O4BNeZtzbcJrfIyZiQzdLMkrnNSleCdj8xM7vg0m+jZC843n75ncNsNJ9ebbG6v0ZrUdr qNf5P92A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ve9fI-0000000282z-1WbF; Fri, 09 Jan 2026 10:24:20 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ve9fH-0000000282k-24vt for linux-arm-kernel@lists.infradead.org; Fri, 09 Jan 2026 10:24:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 86A896017A; Fri, 9 Jan 2026 10:24:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8E51C16AAE; Fri, 9 Jan 2026 10:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767954258; bh=iUq+dtxfpnC8FVWbeMWFgIFXrNcEMGIR+2oWrSColt8=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=j1W1tB1fwOFADXFGzgGgNgsJBz1rZyeNFTA6Ys++eim+syFOpgKWObR3ThW7oH6q+ yKmuQkVUN7cQMDK8siezcaRATrH3yTwVGOsFqM9v2GOaW+DcATFzVdWU1Ss0S3UBKg yA1JKqukuU7GNQT5ejIPltCLxRO/tiLy5J06bvY0= Subject: Patch "pwm: stm32: Always program polarity" has been added to the 5.15-stable tree To: alexandre.torgue@foss.st.com,fabrice.gasnier@foss.st.com,linux-arm-kernel@lists.infradead.org,linux-stm32@st-md-mailman.stormreply.com,mcoquelin.stm32@gmail.com,sean@geanix.com,u.kleine-koenig@baylibre.com,ukleinek@kernel.org Cc: From: Date: Fri, 09 Jan 2026 11:24:15 +0100 In-Reply-To: <20260108-stm32-pwm-v2-1-ced582974f8b@geanix.com> Message-ID: <2026010915-overlay-condense-db9d@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a note to let you know that I've just added the patch titled pwm: stm32: Always program polarity to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: pwm-stm32-always-program-polarity.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From sean@geanix.com Fri Jan 9 11:22:32 2026 From: Sean Nyekjaer Date: Thu, 08 Jan 2026 13:45:23 +0100 Subject: pwm: stm32: Always program polarity To: "Fabrice Gasnier" , "Uwe Kleine-König" , "Maxime Coquelin" , "Alexandre Torgue" Cc: "Uwe Kleine-König" , linux-pwm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Sean Nyekjaer" Message-ID: <20260108-stm32-pwm-v2-1-ced582974f8b@geanix.com> From: Sean Nyekjaer Commit 7346e7a058a2 ("pwm: stm32: Always do lazy disabling") triggered a regression where PWM polarity changes could be ignored. stm32_pwm_set_polarity() was skipped due to a mismatch between the cached pwm->state.polarity and the actual hardware state, leaving the hardware polarity unchanged. Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm") Cc: stable@vger.kernel.org # <= 6.12 Signed-off-by: Sean Nyekjaer Co-developed-by: Uwe Kleine-König Signed-off-by: Uwe Kleine-König --- drivers/pwm/pwm-stm32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/pwm/pwm-stm32.c +++ b/drivers/pwm/pwm-stm32.c @@ -458,8 +458,7 @@ static int stm32_pwm_apply(struct pwm_ch return 0; } - if (state->polarity != pwm->state.polarity) - stm32_pwm_set_polarity(priv, pwm->hwpwm, state->polarity); + stm32_pwm_set_polarity(priv, pwm->hwpwm, state->polarity); ret = stm32_pwm_config(priv, pwm->hwpwm, state->duty_cycle, state->period); Patches currently in stable-queue which might be from sean@geanix.com are queue-5.15/pwm-stm32-always-program-polarity.patch