From: "Uwe Kleine-König" <ukleinek@kernel.org>
To: Pengpeng Hou <hppiscas@163.com>
Cc: Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
linux-pwm@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] pwm: tegra: check reset deassertion status
Date: Tue, 1 Dec 2026 19:10:15 +0100 [thread overview]
Message-ID: <aw8MmRB6WGxC8e3i@monoceros> (raw)
In-Reply-To: <20261014032027.9508-1-hppiscas@163.com>
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
Hello,
On Wed, Oct 14, 2026 at 11:20:27AM +0800, Pengpeng Hou wrote:
> diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c
> index 5cdbe120ba2d8dafd81ea5520f1a637827d8eecf..d9fa16a7b31f43bd9d75474f851899956159d836 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;
reset_control_deassert() doesn't emit an error message on failure, so a
dev_err_probe() is deserved here.
(The driver doesn't use dev_err_probe() yet, but this is addressed in
https://lore.kernel.org/linux-pwm/280e3b3af15fc6d5a9531639f9114ad79e2033c8.1796147495.git.u.kleine-koenig@baylibre.com/.)
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-12-01 18:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 3:20 [PATCH v2] pwm: tegra: check reset deassertion status Pengpeng Hou
2026-12-01 18:10 ` Uwe Kleine-König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw8MmRB6WGxC8e3i@monoceros \
--to=ukleinek@kernel.org \
--cc=hppiscas@163.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=thierry.reding@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox