From: Thomas Richard <thomas.richard@bootlin.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Nishanth Menon <nm@ti.com>, Tero Kristo <kristo@kernel.org>,
Santosh Shilimkar <ssantosh@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
u-kumar1@ti.com, tony@atomide.com, khilman@kernel.org,
gregory.clement@bootlin.com, thomas.petazzoni@bootlin.com,
theo.lebrun@bootlin.com, richard.genoud@bootlin.com
Subject: Re: [PATCH 2/2] serial: 8250_omap: mark the serial as on the wakeup path if no_console_suspend
Date: Wed, 9 Oct 2024 14:17:55 +0200 [thread overview]
Message-ID: <d879d544-4b1d-4b4a-bfd4-efb35b6a57c1@bootlin.com> (raw)
In-Reply-To: <CAPDyKFpnsV-c4F7SNPQmLBSM1sUknr-3sTyiXMDt9n43UBQkNg@mail.gmail.com>
On 10/9/24 12:50, Ulf Hansson wrote:
> On Tue, 8 Oct 2024 at 11:34, Thomas Richard <thomas.richard@bootlin.com> wrote:
>>
>> If the console suspend is disabled, mark the serial as on the wakeup path
>> to keep its PM domain powered on.
>>
>> Suggested-by: Théo Lebrun <theo.lebrun@bootlin.com>
>> Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
>> ---
>> drivers/tty/serial/8250/8250_omap.c | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c
>> index 88b58f44e4e9..6764fe2f9cad 100644
>> --- a/drivers/tty/serial/8250/8250_omap.c
>> +++ b/drivers/tty/serial/8250/8250_omap.c
>> @@ -1660,8 +1660,12 @@ static int omap8250_suspend(struct device *dev)
>> if (!device_may_wakeup(dev))
>> priv->wer = 0;
>> serial_out(up, UART_OMAP_WER, priv->wer);
>> - if (uart_console(&up->port) && console_suspend_enabled)
>> - err = pm_runtime_force_suspend(dev);
>> + if (uart_console(&up->port)) {
>> + if (console_suspend_enabled)
>> + err = pm_runtime_force_suspend(dev);
>> + else
>> + device_set_wakeup_path(dev);
>> + }
>
> Isn't this already managed by the serial core? See commit a47cf07f60dc
> ("serial: core: Call device_set_awake_path() for console port")
Yes you're right.
So this patch is useless.
Regards,
Thomas
next prev parent reply other threads:[~2024-10-09 12:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 9:34 [PATCH 0/2] Fix no_console_suspend in the 8250_omap driver Thomas Richard
2024-10-08 9:34 ` [PATCH 1/2] pmdomain: ti-sci: set the GENPD_FLAG_ACTIVE_WAKEUP flag for all PM domains Thomas Richard
2024-10-09 13:17 ` Ulf Hansson
2024-10-10 7:12 ` Thomas Richard
2024-10-08 9:34 ` [PATCH 2/2] serial: 8250_omap: mark the serial as on the wakeup path if no_console_suspend Thomas Richard
2024-10-09 10:50 ` Ulf Hansson
2024-10-09 12:17 ` Thomas Richard [this message]
2024-10-09 12:39 ` Ulf Hansson
2024-10-09 12:59 ` Thomas Richard
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=d879d544-4b1d-4b4a-bfd4-efb35b6a57c1@bootlin.com \
--to=thomas.richard@bootlin.com \
--cc=gregkh@linuxfoundation.org \
--cc=gregory.clement@bootlin.com \
--cc=jirislaby@kernel.org \
--cc=khilman@kernel.org \
--cc=kristo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=nm@ti.com \
--cc=richard.genoud@bootlin.com \
--cc=ssantosh@kernel.org \
--cc=theo.lebrun@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=tony@atomide.com \
--cc=u-kumar1@ti.com \
--cc=ulf.hansson@linaro.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
all inboxes | Powered by JetHome®