From mboxrd@z Thu Jan 1 00:00:00 1970 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 33C43C4167B for ; Mon, 12 Dec 2022 12:53:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbiLLMx1 (ORCPT ); Mon, 12 Dec 2022 07:53:27 -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: Precedence: bulk List-ID: X-Mailing-List: linux-serial@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