Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6700081rwb; Mon, 12 Dec 2022 05:29:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5V53BGToB6aFQxjbnIBxwpRcY0VAfsMjho+bpUz+Pfwipk0rjzwq1nxDF4RUg+cmjXyzBp X-Received: by 2002:a17:90a:9402:b0:219:84c:5a61 with SMTP id r2-20020a17090a940200b00219084c5a61mr16690626pjo.45.1670851748661; Mon, 12 Dec 2022 05:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670851748; cv=none; d=google.com; s=arc-20160816; b=wVcZeW/E0OXjQ+BiscAyVEu5SjL8WzFrJC+xKIhtN7OEu987AIDhoXqkUZtGw6rGQT wkoCyS6Lk+fPH7pMXMyPHoDnA43LkBJG6sTJHP5CrM43WoWUrjaCr5m7X/mq5TDrFAe1 NNsfoUGU2CjhAKeiOHDhY0+I8Zq+CKG+BVI7qUlSp8kcDQ4IweGh9wtZCMiumlJ1Owa5 ubdFLDlvmslqj23iTd582mxswcX/wgppqGD0cLod3NON+iT0gHZmetiPQUP0PVFZn7RV GCZltNKguW8G8VMKCKz6ao395bGQpEPLFQD1HJmytApWD7OWMAcUa/3highGqTV/a/qP AaqQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RUUoBgTf3k/DhsSbAdy8nLn9aa0cKx8ECx1ZQZmBGVc=; b=hSg15FE3C3KXtRtl/kgbW8ft0AfPSVssMCJCzVLZ/AXjDuh5Vll2C+CvVho9Rexesd Nby8IvTnapWCNfbfcVYLWz+lystm43gAzxrsTFZitby1DHDLiJJtIxZn1b1y66I1n7A7 AxNnj3/sf8k86GIoWavUJCRFX+ISM/PyY4YdLzK5ULVs3X5fI9b5eH5MQUjv7Kzn22wm BJizHLcCqoUiABXBWMS8ZKUJFJ2Kg/UPS02wuJTn+9I174SxCPkUT5NF315Z7UmhArBO WKJ6FUL1jKWACp7Um+FWqtRED4+1BEnq7FVvsdZOhZq+ZhoVhJgVgVYlRAVIzAbaujmO ap6A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np1-20020a17090b4c4100b0021824fcc6b9si9887841pjb.63.2022.12.12.05.28.59; Mon, 12 Dec 2022 05:29:08 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232362AbiLLMx3 (ORCPT + 75 others); Mon, 12 Dec 2022 07:53:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232032AbiLLMxZ (ORCPT ); Mon, 12 Dec 2022 07:53:25 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1CF3DFD3; Mon, 12 Dec 2022 04:53:22 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D172E80B3; Mon, 12 Dec 2022 12:53:21 +0000 (UTC) Date: Mon, 12 Dec 2022 14:53:20 +0200 From: Tony Lindgren To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: Greg Kroah-Hartman , Andy Shevchenko , Jiri Slaby , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-serial , linux-omap@vger.kernel.org, LKML Subject: Re: [RFC PATCH v4 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: References: <20221207124305.49943-1-tony@atomide.com> <7f105ff9-cdc3-f98e-2557-812361faa94@linux.intel.com> <3c87186b-336f-6884-a2c-6ee3c9d70@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 * Ilpo Järvinen [221212 12:49]: > On Mon, 12 Dec 2022, Tony Lindgren wrote: > > > Hi Ilpo, > > > > * Tony Lindgren [221208 11:13]: > > > * Ilpo Järvinen [221208 10:48]: > > > > With the other patch on top of this, yes, I did see uninitialized > > > > port->port_dev already in serial_core_add_one_port()->uart_configure_port(). > > > > While that could be solved by removing the pm_runtime_*() calls from > > > > there, I think it's a generic problem because after > > > > serial_core_add_one_port() the port can have anything happening on it, no? > > > > > > OK. Sounds like it should get sorted out by moving the call to > > > serial_core_add_one_port() to happen after the devices are created. > > > > Can you give a try with the patch below and see if it works for you? > > This one worked, yes. OK good to hear. I'll send out v5 after -rc1 then. Thanks, Tony