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 E57A6D167FA for ; Fri, 9 Jan 2026 10:24:14 +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=O5MJt8Nwt7gEzzs/WifeaIl1+aMdgYOH+iBChXdCF5w=; b=p9ipTkHpXN598hg4MmeFXF/ez9 aqtrsx6TdIFNujmA71CAWP2NH/2WCaS1H/ZiXwKBhkrEV6b6U19/SKuXUWevbyujDfuBw1ACT3mfu KTZrZDl2f8UeHW/PRrr8OM2OopRVlatHYpM2WbUwiG5cNxz2IidyINCSGqqtc0vaC/2LMEA6VgTWo HmT62jmXJYFnvW4SWZQ/CQpSS1FZLC2LcryHaXsKZXrqSSE9YKBvRXJwWw2OnEnTbwA9TN+UZfVN8 v2LnKn5gY/9XRc9ME/VpaLRmwRyxkOgrQlaeuWGxCcj5QZwJj61bklYIQy2s7iOXqSdBqoLgP5F8p Qcbdj2ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ve9f8-0000000280y-08EP; Fri, 09 Jan 2026 10:24:10 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ve9f6-00000002803-1u4E for linux-arm-kernel@lists.infradead.org; Fri, 09 Jan 2026 10:24:08 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 87FD260166; Fri, 9 Jan 2026 10:24:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8A89C16AAE; Fri, 9 Jan 2026 10:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767954247; bh=sws3c2Q7sg64FTK0Tatp3OBfCQZp2TP1cZM4XUeIng8=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=HPgzd3cTDGmpuSSytjWkPz7twtNmWuAUCZCV7iXqT/gdUEQvEhLe35/bz6K0gSvEx pm1z8i71/uh3FRAYLbs6BFsS54v4ModDZGaeJsVDF46XLsOUNHfm1C5FZXdabKehAu H/yz25uIKAXpOmFv86dTQVWenOALG2NwmIBh1PSM= Subject: Patch "pwm: stm32: Always program polarity" has been added to the 5.10-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:04 +0100 In-Reply-To: <20260108-stm32-pwm-v2-1-ced582974f8b@geanix.com> Message-ID: <2026010904-erased-prologue-1282@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.10-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.10 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.10/pwm-stm32-always-program-polarity.patch