Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp867484rwd; Thu, 1 Jun 2023 07:33:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dbMYgA4GueyqKK7otDzvlTDZ4ydcKeJvy8UFJuk9a/Npbc+xThGCMo2Fw4EZpHGEb/AZA X-Received: by 2002:a05:6a00:987:b0:5a8:9858:750a with SMTP id u7-20020a056a00098700b005a89858750amr2533838pfg.13.1685630017485; Thu, 01 Jun 2023 07:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685630017; cv=none; d=google.com; s=arc-20160816; b=NR4WNc9zjCDXUTJvkMN9iCo+ZDg0+ZKYC0OdGatV6GJESL+BzaqBTl8daDqceWIh+e YRn0BSVsW5SDwewgY8003ENrSuZIHWVN27snOMfgYy8+QEl9RlugulHfoJey9DGbjpvQ CeU0kvql0yRjO2sSrdYbv8IuPxMM+a4vQYESRLNFXnFaxnLaCw7+r1wtOLa+wF1LVVQO eOp03A7nBmcI18XJDepwDCtO2Cs0seDE5NrYYoVsw+n7KXBOfqCCFb/Jb9KZNJp83x54 rG8l7NJsmthdGHSmF9oSMXYdCzmvKcabGpqSM3aPFoyK9KAIvBdKuMg1k50DTrA3ry5w zQKQ== 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=2G+0VMMVic6mvkzWQruT8OZoc497WeCkiQb/vDGTEeI=; b=A1T/lx5pKdC/HT5eEb8Ar6nQsSW57A+f7yfXFHbuYRo6D9CKKYgFDg9jazF7HLmA/A ePWXAXJNGwQsprNkmu7GSTyxy4qYMGfliiYKWR/BXi84Uz4vZfOfdfsCV9vTFP/geMB7 uDA1KDhgZQvXeyqKb7+3mPh46akVxcHggzaUN8bvUYb4byGKRl8/NYkddkVTIY63CseD BpmwbRqxq9G6xvXHovwVhuxEsfgyIDTO6JJ/25c2/QgsKrh74QOVZLhIJa2BoIiEDqpN 66+R78Tq9tkAdDDkGp/rtCUDYcsrBYgnzLnhzS+uFk+ybQ038oa7KS7tZH2IDAOK8pNB l5dA== 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 u144-20020a627996000000b00643a730d50bsi918560pfc.389.2023.06.01.07.33.24; Thu, 01 Jun 2023 07:33:37 -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; 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 S233685AbjFAOUU (ORCPT + 99 others); Thu, 1 Jun 2023 10:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233126AbjFAOUT (ORCPT ); Thu, 1 Jun 2023 10:20:19 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD8408E; Thu, 1 Jun 2023 07:20:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id BE5A880F1; Thu, 1 Jun 2023 14:20:16 +0000 (UTC) Date: Thu, 1 Jun 2023 17:20:15 +0300 From: Tony Lindgren To: Marek Szyprowski Cc: Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , 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: <20230601142015.GC14287@atomide.com> References: <20230525113034.46880-1-tony@atomide.com> <88d9edfe-2f39-b15f-f513-463eac6bf473@samsung.com> <20230601111147.GA14287@atomide.com> <20230601132012.GB14287@atomide.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,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 * Marek Szyprowski [230601 14:16]: > On 01.06.2023 15:20, Tony Lindgren wrote: > > * Tony Lindgren [230601 11:12]: > >> * Marek Szyprowski [230601 11:00]: > >>> This patch landed in today's linux next-20230601 as commit 84a9582fd203 > >>> ("serial: core: Start managing serial controllers to enable runtime > >>> PM"). Unfortunately it breaks booting some of my test boards. This can > >>> be easily reproduced with QEMU and ARM64 virt machine. The last message > >>> I see in the log is: > >>> > >>> [    3.084743] Run /sbin/init as init process > >> OK thanks for the report. I wonder if this issue is specific to ttyAM > >> serial port devices somehow? > > Looks like the problem happens with serial port drivers that use > > arch_initcall(): > > > > $ git grep arch_initcall drivers/tty/serial/ > > drivers/tty/serial/amba-pl011.c:arch_initcall(pl011_init); > > drivers/tty/serial/mps2-uart.c:arch_initcall(mps2_uart_init); > > drivers/tty/serial/mvebu-uart.c:arch_initcall(mvebu_uart_init); > > drivers/tty/serial/pic32_uart.c:arch_initcall(pic32_uart_init); > > drivers/tty/serial/serial_base_bus.c:arch_initcall(serial_base_init); > > drivers/tty/serial/xilinx_uartps.c:arch_initcall(cdns_uart_init); > > > > We have serial_base_bus use module_init() so the serial core controller > > and port device associated with the physical serial port are not probed. > > > > The patch below should fix the problem you're seeing, care to test and > > if it works I'll post a proper fix? > > Right, this fixes my issue. Feel free to add: > > Reported-by: Marek Szyprowski OK great just posted it with your Reported-by before seeing this, I added returning an error too so maybe reply to the posted patch with your Tested-by assuming it's still OK for you. For reference if other folks are hitting this, the fix is at [0] below. Regards, Tony [0] https://lore.kernel.org/linux-serial/20230601141445.11321-1-tony@atomide.com/T/#u