Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp639036rwr; Thu, 20 Apr 2023 04:37:50 -0700 (PDT) X-Google-Smtp-Source: AKy350brrxm2Y12hOx3yqzcBzBf17ZGOxJuLoEF9xfT11jztsmFa0zC472SBk0e0wAHvEEjG8DYU X-Received: by 2002:a05:6a00:1343:b0:63b:4b4e:9ccf with SMTP id k3-20020a056a00134300b0063b4b4e9ccfmr1219143pfu.8.1681990669950; Thu, 20 Apr 2023 04:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681990669; cv=none; d=google.com; s=arc-20160816; b=hA1/j3Zy8/eekYeney9bRI5E9DEPAsOaAaypBN+BnDscg3T+LqCgi4gAFngStOG8NE PKLX0giIsDIxLUg4ZAczuRgnJU099T/0Lfx50vuJt17Mc3VfwoI/ntapDdqljDRvt/xZ sw14HlOyZkrJU6fIRT93MrGztne/ezSIaQ+QEs/2RIFbSGCkTc3bGBR05WVZUcNGkjZ5 4ErGRq2kWHG8I7HdqfCgssUW1EgnfnwC6MPzq39bamWadN3ZbTIbkcBtInev3iAxQNHp 3Ub+TGUEA5jpqgY0u4rS94xPTID8E5t9gWYpOaOmvikjrVsw4SKWDNCElHUWtZ0Qr0ez 3kMQ== 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=/Zt2Ui1xWgMPwZb5bV9tusufX1muRuOZ8rc36Lk6EUA=; b=EKIcvXCY4AmDdNkmSUhb5yzMRhveODy6o1Kc2KzNM9MpwuZyLeGTWSymOsoYoIYbmK KWbps601Gg/4b79xbiRboNdQPZEQrjPiz6mRCF1ommzhUeXjJ/4+0emU5pSlV283Nb7h l6yStJV+WhnBxCWO15gbbXkTqKOiLrPB3y0HvOusbNxjgTlXDcW3lnSjSIACFoH4Cmks aW1h3S6cP+6ib3ACutmIMtK1e0Su0cdnn41h7QdrHg8ZLIDRYdaj8sYHX2HQFzuHo1eO BFGlyfa7QV0UT43p/mC5v8bGfsvvqUszGvIIe90LVMYhiLY8fMFm0/oLCjHqTzDkl5Vp 6Itg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BDpo9ghQ; 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 w27-20020aa79a1b000000b00628217e3ea6si1349186pfj.316.2023.04.20.04.37.38; Thu, 20 Apr 2023 04:37:49 -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=BDpo9ghQ; 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 S234198AbjDTLf2 (ORCPT + 99 others); Thu, 20 Apr 2023 07:35:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjDTLf1 (ORCPT ); Thu, 20 Apr 2023 07:35:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE77440CA; Thu, 20 Apr 2023 04:35:04 -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 DF381647CB; Thu, 20 Apr 2023 11:34:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC007C433EF; Thu, 20 Apr 2023 11:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681990445; bh=VsfZrco2JQZGfIqPwGjRvxKZSNISIaz4em2BpQLe6c0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BDpo9ghQp8RBnno7IyBfZhU+f1LWUGRZE9uPmuOOaaRrJKBWQCyU3YIBTocmUU3io Z09//nBu/OvgR/EDUIn/KzXXL1861GS/FCBu6x8/jSlYPsQ7ts8xCTJ7bzqxdEGeLF MvgmqSlUQN5YYAifuBMFxqxUjBnlPF/WjMZfPKnk= Date: Thu, 20 Apr 2023 13:34:02 +0200 From: Greg Kroah-Hartman To: Tony Lindgren Cc: Jiri Slaby , Andy Shevchenko , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , 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: References: <20230116080002.47315-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 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 Wed, Feb 01, 2023 at 08:38:42AM +0200, Tony Lindgren wrote: > * Greg Kroah-Hartman [230131 10:10]: > > 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. > > > > Looking better, but why is this new device a platform device? That > > feels odd, you should never have a platform device hanging off of a > > non-platform device, right? > > No special need for it to be a platform device. It just is easy to set > up, and for my test case the serial port physical device is also a > platform device. > > What's your preference here? Never make up a "fake" platform device please. Only use them for real platform devices. Use a virtual device if you want a virtual one. thanks, greg k-h