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 BFE0CD167FA for ; Fri, 9 Jan 2026 10:24:31 +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=zp1W/pAvYQgC1ACsyA4Iu1Iy7gbzcmhL3FNbr4N2nf4=; b=GGSP2syndURyj6zzhvHVD/IIat hJrIMsDylRDocHCIIjNqhKDTa9R6SmDzlH1025m7A+Ljij4A79/QK/zLflAWvtAT3MU4jmE7Qq7u8 /YvRCO5+JhLioG4/BI5Z7V/8JJlsSFBJTXUHkrnNAtJXVxhXCSgFLQuA/N9aH5G0fWm0sI9Nvy/Kp /DLj7hY+4sFRbfPBW0oT25HsDQaUGO59zM8wGJDfECvtBdlmVMdAnViDpztn1YjtOVWPa2b+fNXZQ cJAtR9OkRkSyWhBDpIu79l3mLn3JR8gCvHMyRg+KgNHMC+HoNwhugMS4fnSZkOcgOQzbiEnToIPly QCNxlSlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ve9fP-00000002859-2lsv; Fri, 09 Jan 2026 10:24:27 +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 1ve9fO-0000000284s-43M1 for linux-arm-kernel@lists.infradead.org; Fri, 09 Jan 2026 10:24:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 67ADC60166; Fri, 9 Jan 2026 10:24:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDD9FC19421; Fri, 9 Jan 2026 10:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767954266; bh=LADGWGsteUBnl3yqmxutiBv9x6U6V+ZJyxdy4J2mSuE=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=CeQPc6+z2TPDFQ4Po2haPRD7vH227aeRqD1cuWRjyOn782cGbQtVVmGvN40Kb01qI JlF/bCLWkmbcnOhRi98sDssn15wvzRAEA/1Pc7MBqGLN9HLG0B2Q3SgCj3N2Vvpuix 1wisCHpuIdZEaUUxCSApVBxEBp9tAVWfqofLSVF4= Subject: Patch "pwm: stm32: Always program polarity" has been added to the 6.1-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:23 +0100 In-Reply-To: <20260108-stm32-pwm-v2-1-ced582974f8b@geanix.com> Message-ID: <2026010923-quilt-deferral-35b3@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.1-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.1 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-6.1/pwm-stm32-always-program-polarity.patch