From: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Malathi A <malathi.a2000@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2] serial: 8250_uniphier: Use devm_clk_get_enabled()
Date: Mon, 5 Oct 2026 15:55:10 +0900 [thread overview]
Message-ID: <632a5ff5-89e3-437d-b89e-dbcef35fbd49@socionext.com> (raw)
In-Reply-To: <arot4SH3vbDpKC8A@ashevche-desk.local>
On 2026/09/28 18:05, Andy Shevchenko wrote:
> On Mon, Sep 28, 2026 at 03:51:09PM +0900, Kunihiko Hayashi wrote:
>> On 2026/09/25 22:37, Andy Shevchenko wrote:
>>> On Fri, Sep 25, 2026 at 08:32:20PM +0900, Kunihiko Hayashi wrote:
>>>> On 2026/09/24 23:09, Andy Shevchenko wrote:
>>>>> On Thu, Sep 24, 2026 at 06:07:37PM +0900, Kunihiko Hayashi wrote:
>>>>>> On 2026/09/17 13:05, Malathi A wrote:
>
> ...
>
>>> So, in such a case how do you see the scenario when system is resumed
>>> (Right?
>>> Otherwise we can't do anything, like detaching driver from the device.)
>>> and
>>> clock is disabled?
>>
>> Ah, I understand your point. I was assuming that the driver could later
>> be detached after uniphier_uart_resume() failed, leaving the clock disabled.
>
> I'm not sure, I don't know if I was right. Can you confirm that this scenario
> is not possible? So, it might look like CPU is resumed, some of the devices
> were resumed, but this particular UART failed to resume, and now we want to
> detach it. If this case is possible, I believe tons of the device drivers as
> of today may be affected by the same issue (it doesn't mean that the issue
> is impossible to happen, one needs to investigate deeper)
Sorry for the delayed reply.
Unfortunately, I can't confirm whether this scenario is impossible.
I don't currently have an environment where I can reproduce this system
suspend/resume case either.
I agree that if a device can later be detached after its system resume callback
has failed, this may affect other drivers using the same pattern as well,
and determining that seems to require a deeper look into the PM core behavior.
>> If that sequence cannot happen after a failed system resume, then my concern
>> doesn't apply.
>
> As pointed out I'm not sure. Last time I experimented with failed resume > long time ago.
So I don't have a definitive answer here either, and can only point out this
as a potential issue for now.
Thank you,
---
Best Regards
Kunihiko Hayashi
prev parent reply other threads:[~2026-10-05 6:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 4:05 [PATCH v2] serial: 8250_uniphier: Use devm_clk_get_enabled() Malathi A
2026-09-17 4:11 ` sashiko-bot
2026-09-17 6:42 ` Andy Shevchenko
2026-09-24 9:07 ` Kunihiko Hayashi
2026-09-24 14:09 ` Andy Shevchenko
2026-09-25 11:32 ` Kunihiko Hayashi
2026-09-25 13:37 ` Andy Shevchenko
2026-09-28 6:51 ` Kunihiko Hayashi
2026-09-28 9:05 ` Andy Shevchenko
2026-10-05 6:55 ` Kunihiko Hayashi [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=632a5ff5-89e3-437d-b89e-dbcef35fbd49@socionext.com \
--to=hayashi.kunihiko@socionext.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=malathi.a2000@gmail.com \
--cc=mhiramat@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.