[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: 505b730ede7f5c4083ff212aa955155b5b92e574
Status in newer kernel trees: 6.15.y | Present (different SHA1: c4ffbbd8e366) 6.12.y | Present (different SHA1: dd878f5a5d0d) 6.6.y | Not found 6.1.y | Not found
Note: The patch differs from the upstream commit: --- 1: 505b730ede7f5 ! 1: 06f8584381eb0 pwm: mediatek: Ensure to disable clocks in error path @@ Metadata ## Commit message ## pwm: mediatek: Ensure to disable clocks in error path
+ commit 505b730ede7f5c4083ff212aa955155b5b92e574 upstream. + After enabling the clocks each error path must disable the clocks again. One of them failed to do so. Unify the error paths to use goto to make it harder for future changes to add a similar bug. @@ Commit message Link: https://lore.kernel.org/r/20250704172728.626815-2-u.kleine-koenig@baylibre.c... Cc: stable@vger.kernel.org Signed-off-by: Uwe Kleine-König ukleinek@kernel.org + [ukleinek: backported to 5.15.y] + Signed-off-by: Uwe Kleine-König u.kleine-koenig@baylibre.com
## drivers/pwm/pwm-mediatek.c ## @@ drivers/pwm/pwm-mediatek.c: static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, @@ drivers/pwm/pwm-mediatek.c: static int pwm_mediatek_config(struct pwm_chip *chip
if (clkdiv > PWM_CLK_DIV_MAX) { - pwm_mediatek_clk_disable(chip, pwm); - dev_err(pwmchip_parent(chip), "period of %d ns not supported\n", period_ns); +- dev_err(chip->dev, "period %d not supported\n", period_ns); - return -EINVAL; ++ dev_err(chip->dev, "period of %d ns not supported\n", period_ns); + ret = -EINVAL; + goto out; } ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.15.y | Success | Success |