[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vc=D4GVmQ+ohk21iXPGvXMex3WLcRGtquy57D-e4fx-7Q@mail.gmail.com>
Date: Tue, 30 Aug 2022 22:56:17 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Kumaravel Thiagarajan <kumaravel.thiagarajan@...rochip.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, Johan Hovold <johan@...nel.org>,
Wander Lairson Costa <wander@...hat.com>,
Eric Tremblay <etremblay@...tech-controls.com>,
"Maciej W. Rozycki" <macro@...am.me.uk>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Jeremy Kerr <jk@...abs.org>,
Phil Edworthy <phil.edworthy@...esas.com>,
Lukas Wunner <lukas@...ner.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"open list:SERIAL DRIVERS" <linux-serial@...r.kernel.org>,
Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>
Subject: Re: [PATCH v1 tty-next 2/2] 8250: microchip: pci1xxxx: Add power
management functions to pci1xxxx's quad-uart driver.
On Tue, Aug 30, 2022 at 9:01 PM Kumaravel Thiagarajan
<kumaravel.thiagarajan@...rochip.com> wrote:
>
> pci1xxxx's quad-uart function has the capability to wake up the host from
> suspend state. Enable wakeup before entering into suspend and disable
> wakeup upon resume.
on resume
...
First of all, we have pm_ptr() and pm_sleep_ptr() with corresponding
other macros in pm.h. Use them.
Second, if you need to duplicate a lot of code from 8250_pci, split
that code to 8250_pcilib.c and use it in the driver.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists