[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YlQyeoCdTtfUc45h@atomide.com>
Date: Mon, 11 Apr 2022 16:51:54 +0300
From: Tony Lindgren <tony@...mide.com>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Jiri Slaby <jirislaby@...nel.org>,
Johan Hovold <johan@...nel.org>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Vignesh Raghavendra <vigneshr@...com>,
linux-serial@...r.kernel.org, linux-omap@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] serial: core: Start managing serial controllers to
enable runtime PM
* Andy Shevchenko <andriy.shevchenko@...el.com> [220411 13:26]:
> On Mon, Apr 11, 2022 at 03:02:18PM +0300, Tony Lindgren wrote:
> > +struct serial_controller {
> > + struct uart_driver *drv; /* For port specific uart_state */
>
> > + struct mutex lock; /* For changing enabled_count */
> > + int enabled_count; /* Enable count for runtime PM */
>
> Wondering if we may use kref instead which will check for saturation as well.
Thanks for the quick review, using kref is a good idea.
Regards,
Tony
Powered by blists - more mailing lists