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 6FA95D167FA for ; Fri, 9 Jan 2026 10:24:41 +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=3L/QVvHrC19frTwfLl3MXYSYf44LMMoSMPR++3f7AN8=; b=piyecuaaehw9ijALifFI1JkwLc E09rmB1kX7ARno1xJTa6SNoUY4B46YZcNTVahZAXkktHYm/3CQIbhhpeI2n/WG/wqze7V4igIiUm0 Mx7ReYTmwDF7A/I37V1zGArg0EwYhvcahjguNZBJYCsb/O/5848eFqbV7AZB/czU1k3u9sg7SQpWG vt3nflRcMNC1ytxCKLbYqVXS88mjUsGt9WQWbwON9WMCKAEnI4RjNGMnFfFIGiV2ChZpUOaO85ges JJrXUUdQUAASLAiNDjr+/pyFk9yqZqRAXswzqKux5vpRDDmHVDVwPBVk1dmCKLajFJoM1d6MI9sEk oRtyq9Fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ve9fY-00000002888-46Mb; Fri, 09 Jan 2026 10:24:36 +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 1ve9fX-0000000287a-25Q4 for linux-arm-kernel@lists.infradead.org; Fri, 09 Jan 2026 10:24:35 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id E86336016B; Fri, 9 Jan 2026 10:24:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45188C16AAE; Fri, 9 Jan 2026 10:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767954274; bh=FW9b4sfyAM8QZdUznkWtL4KKn67NHjDt0Os2I6oZf7U=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=YyaCYu84bFN34xMP7JMfIBXgFfJgpQsuxgMxoyWupVlCZ1mOL0GvLZYVFJe6lYu4I sVIhm+YrKtURU3WytjBXXDtvA1jaMXsu7iTbZtD1kBYioJyEAWd9ZAxAHPAK4y6T+H BCrZBexc134pmRhE1TtkD+AEqIj6CgT83skRxILM= Subject: Patch "pwm: stm32: Always program polarity" has been added to the 6.6-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:32 +0100 In-Reply-To: <20260108-stm32-pwm-v2-1-ced582974f8b@geanix.com> Message-ID: <2026010932-vivacious-idly-1ade@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 6.6-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-6.6 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 @@ -462,8 +462,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-6.6/pwm-stm32-always-program-polarity.patch