From: Greg KH <gregkh@linuxfoundation.org>
To: Artem Shimko <a.shimko.dev@gmail.com>
Cc: andriy.shevchenko@linux.intel.com, ilpo.jarvinen@linux.intel.com,
jirislaby@kernel.org, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org, p.zabel@pengutronix.de
Subject: Re: [PATCH v2] serial: 8250_dw: handle reset control deassert error
Date: Sun, 19 Oct 2025 11:00:21 +0200 [thread overview]
Message-ID: <2025101902-puritan-thrift-b2d4@gregkh> (raw)
In-Reply-To: <20251019085325.250657-1-a.shimko.dev@gmail.com>
On Sun, Oct 19, 2025 at 11:53:25AM +0300, Artem Shimko wrote:
> Check the return value of reset_control_deassert() in the probe
> function to prevent continuing probe when reset deassertion fails.
>
> Previously, reset_control_deassert() was called without checking its
> return value, which could lead to probe continuing even when the
> device reset wasn't properly deasserted.
>
> The fix checks the return value and returns an error with dev_err_probe()
> if reset deassertion fails, providing better error handling and
> diagnostics.
>
> Fixes: acbdad8dd1ab ("serial: 8250_dw: simplify optional reset handling")
> Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
> ---
> Hi Andy,
>
> Thank you for your review.
>
> The v1 patch hasn't been applied.
>
> I've addressed your comments in v2 - could you please take a look when you have time?
>
> Best regards,
> Artem Shimko
>
> ChangeLog:
> v1:
> * https://lore.kernel.org/all/20251009081309.2021600-1-a.shimko.dev@gmail.com/T/#u
> v2:
> * Add fix tag to commit description
>
> drivers/tty/serial/8250/8250_dw.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
> index a53ba04d9770..710ae4d40aec 100644
> --- a/drivers/tty/serial/8250/8250_dw.c
> +++ b/drivers/tty/serial/8250/8250_dw.c
> @@ -635,7 +635,9 @@ static int dw8250_probe(struct platform_device *pdev)
> if (IS_ERR(data->rst))
> return PTR_ERR(data->rst);
>
> - reset_control_deassert(data->rst);
> + err = reset_control_deassert(data->rst);
> + if (err)
> + return dev_err_probe(dev, err, "failed to deassert resets\n");
>
> err = devm_add_action_or_reset(dev, dw8250_reset_control_assert, data->rst);
> if (err)
> --
> 2.43.0
>
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- You have marked a patch with a "Fixes:" tag for a commit that is in an
older released kernel, yet you do not have a cc: stable line in the
signed-off-by area at all, which means that the patch will not be
applied to any older kernel releases. To properly fix this, please
follow the documented rules in the
Documentation/process/stable-kernel-rules.rst file for how to resolve
this.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
next prev parent reply other threads:[~2025-10-19 9:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-09 8:13 [PATCH] serial: 8250_dw: handle reset control deassert error Artem Shimko
2025-10-15 16:35 ` Andy Shevchenko
2025-10-19 8:53 ` [PATCH v2] " Artem Shimko
2025-10-19 9:00 ` Greg KH [this message]
2025-10-19 9:51 ` [PATCH v3] " Artem Shimko
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=2025101902-puritan-thrift-b2d4@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=a.shimko.dev@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/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