Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4632634rwd; Tue, 30 May 2023 07:57:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lRSrHj9hPFRjB7hU2ZgEg5Mx+f9MwfqSlJ9b3MyQ2MUmhbmwkVPyZYyf5Qc8reGIaLac/ X-Received: by 2002:a17:90b:4f85:b0:24e:4b1c:74d2 with SMTP id qe5-20020a17090b4f8500b0024e4b1c74d2mr2862685pjb.32.1685458679140; Tue, 30 May 2023 07:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685458679; cv=none; d=google.com; s=arc-20160816; b=U766BJM7nFXGmm5/ectJC+KS3RuWsgVaCP8MU60GZjr0lxmsh5SeHXpUIsjUE3nM07 I2PxYOYAKj0qz9IgVDv9z8a5Gr4SJpPRe/tzLgjz9qa2DPzyn3sjrKAyRAqgSSpw0sEO OPeCTtnxYG9tpc3sG99E1t17R8GlhgucrZlu7IWdyonwDqUoR+m2aXc+NQK7E4+GZceA 8/9T8sqUa4aYTpYgIZJXpOH3VS7+k3cdAePXVV5yZ18QP2yjsoGNUMGAUUe+baaB7PvC vDji9Ex5mqxI6c0xksVuTVywC/cfNAXZ80msa7Sx/20qfB2Bltnb7btsPnowwE2ZFDlL bzsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wga/BHLS9moIgxDScS+E0+BT4V1HR9yrvJrE+QPRTkk=; b=gSjwtqOgIGMTjEOuKfN8N+6ms+bko8LXkwp6MEEB9rXSen49xLh6jUL/vAyNZNz3wY JwMchp81Z2CQGwV1zaZmOWoH2n7RIHq3iLJkk47FVSutPhzQHQESS9oOhE93BsSy6VtU Pp4kkIcpWGAAZXq5BArLqUT6gGdEazfbqENT8LnJvYTJOx8MwOZB68WKSXbF+AgoAh2F UNLAuCsiCzYTbYXITMLJ3+KtjAqYqIaN1BWj2ODweiKxC2icSYukQQRf/9U85J3gGQUH 6kNTz66Dhvc1VRuvEao4GSolDUvy4vpnqQSaoG4/wmm9WBsrlj2o/aX8HcoLu3nJEbUz jVBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i579FhuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b0053ef0ec756csi680196pgh.126.2023.05.30.07.57.45; Tue, 30 May 2023 07:57:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i579FhuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjE3One (ORCPT + 99 others); Tue, 30 May 2023 10:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbjE3Ond (ORCPT ); Tue, 30 May 2023 10:43:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46ECD8F; Tue, 30 May 2023 07:43:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C57AE62D95; Tue, 30 May 2023 14:43:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A84B6C4339B; Tue, 30 May 2023 14:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685457811; bh=xNs8m24vD/RjSAGjEwvUKepcpTCIxfktl7qmXjLlGKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i579FhuWiS1GV+82+X0fTorQKPesAzJcBj2uDCMSY5C9itryHvjwJ9DU6CQOxG+64 NIOj5T3Nk0cUd6a/W5EsVmFv0H+mKCjvhi4rs4ceN4eYCq19opGRo8PTs0ILJ940uG HxVut4SuvetGXLIGXRpR6eCuj2mARQ0O2SsJr96M= Date: Tue, 30 May 2023 15:43:28 +0100 From: Greg Kroah-Hartman To: Tony Lindgren Cc: Jiri Slaby , Andy Shevchenko , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v12 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: <2023053007-disabled-traffic-9812@gregkh> References: <20230525113034.46880-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230525113034.46880-1-tony@atomide.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Suggested-by: Greg Kroah-Hartman > Suggested-by: Jiri Slaby > Suggested-by: Johan Hovold > Signed-off-by: Tony Lindgren > --- Thanks for sticking with this, looks good now so I've queued it up in my tree. greg k-h