[PATCH] pwm: tegra: fail probe on reset deassert errors

From: Pengpeng Hou

Date: Sun Aug 30 2026 - 08:59:01 EST


tegra_pwm_probe() registers the PWM provider after deasserting the reset
control without checking whether the reset controller accepted the request.

Propagate the failure through the existing runtime-PM cleanup path instead
of publishing a PWM controller whose hardware may still be reset.

Fixes: 5dfbd2bd5439 ("pwm: tegra: Add support for reset control")
Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
---
drivers/pwm/pwm-tegra.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c
index 5cdbe120ba2d8..d9fa16a7b31f4 100644
--- a/drivers/pwm/pwm-tegra.c
+++ b/drivers/pwm/pwm-tegra.c
@@ -379,7 +379,9 @@ static int tegra_pwm_probe(struct platform_device *pdev)
goto put_pm;
}

- reset_control_deassert(pc->rst);
+ ret = reset_control_deassert(pc->rst);
+ if (ret)
+ goto put_pm;

chip->ops = &tegra_pwm_ops;

base-commit: 08dbfad3f5040f5bdb6c529da20d6d4e81fefd72
--
2.50.1