Messages in this thread | ![/](/images/icornerl.gif) | | Date | Tue, 30 May 2023 15:43:28 +0100 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH v12 1/1] serial: core: Start managing serial controllers to enable runtime PM |
| |
On Thu, May 25, 2023 at 02:30:30PM +0300, Tony Lindgren wrote: > We want to enable runtime PM for serial port device drivers in a generic > way. To do this, we want to have the serial core layer manage the > registered physical serial controller devices. > > To manage serial controllers, let's set up a struct bus and struct device > for the serial core controller as suggested by Greg and Jiri. The serial > core controller devices are children of the physical serial port device. > The serial core controller device is needed to support multiple different > kind of ports connected to single physical serial port device. > > Let's also set up a struct device for the serial core port. The serial > core port instances are children of the serial core controller device. > > With the serial core port device we can now flush pending TX on the > runtime PM resume as suggested by Johan. > > Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Suggested-by: Jiri Slaby <jirislaby@kernel.org> > Suggested-by: Johan Hovold <johan@kernel.org> > Signed-off-by: Tony Lindgren <tony@atomide.com> > ---
Thanks for sticking with this, looks good now so I've queued it up in my tree.
greg k-h
| ![\](/images/icornerr.gif) |