Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB215C61DA4 for ; Mon, 6 Mar 2023 06:50:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbjCFGuT (ORCPT ); Mon, 6 Mar 2023 01:50:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjCFGuL (ORCPT ); Mon, 6 Mar 2023 01:50:11 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F6D7F949; Sun, 5 Mar 2023 22:49:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id A34328027; Mon, 6 Mar 2023 06:49:28 +0000 (UTC) Date: Mon, 6 Mar 2023 08:49:27 +0200 From: Tony Lindgren To: Andy Shevchenko Cc: Greg Kroah-Hartman , Jiri Slaby , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v5 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: <20230306064927.GA7501@atomide.com> References: <20230116080002.47315-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Shevchenko [230302 16:07]: > On Mon, Jan 16, 2023 at 09:59:58AM +0200, 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 do this, let's set up a 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. > > A side note. Perhaps it makes sense to also clean up documentation somehow > related to this change. For example, I found that > Documentation/firmware-guide/acpi/enumeration.rst has this: > > "Note that standard UARTs are not busses so there is no struct uart_device, > although some of them may be represented by struct serdev_device." OK good point, will update that for the next version. FYI, I replaced the serial core platform bus with just struct device and bus, need to clean-up a bit before posting though. Regards, Tony