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 C4208C7EE23 for ; Sat, 25 Feb 2023 18:03:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbjBYSDq (ORCPT ); Sat, 25 Feb 2023 13:03:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjBYSDo (ORCPT ); Sat, 25 Feb 2023 13:03:44 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35E3136DD; Sat, 25 Feb 2023 10:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=lCDiPvT3j8u2A6R0sPp3X261HW0Cf+Aq45PS2TyiNhE=; b=2wyCJgIgRiUl9dnGjEo/2WaryM E6DAJf12N9RGO8vPSARGZoDy9ub+l9cXUalpUVbL+k/lqaxuzBPbQIUtqXXsj5+avKl7Yf/Taystk D74GTx8he/u1i9MErynId4Ti0v0Fiq2Q1Sa0vErKM+RP2qcpGrkHaAkp8nqkej/4bv4DWAsxGCSWT 8ucgbSp8LNliK8gF4CnoUD1VMwMQ/vfoCQ0MR4Wa0cl0QFOth4WiQWhX/+djLFYsDe9DfKrVGMY0Z UZqmwgUzRO7A8R0qvd+o2kHZliYiQ15IIpABb4x/mbtXyRehZCHIh5lAI/Bdn/9FxV4yL6dZesFP+ FJG6gp9w==; Received: from [2601:1c2:980:9ec0::df2f] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pVytW-00681H-JX; Sat, 25 Feb 2023 18:03:38 +0000 Message-ID: <6dd89251-f4d6-8051-8ecf-cdea7d23bc68@infradead.org> Date: Sat, 25 Feb 2023 10:03:38 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH] tty: serial: fsl_lpuart: select SERIAL_FSL_LPUART for SERIAL_FSL_LPUART_CONSOLE Content-Language: en-US To: Tom Rix , gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230225173949.651311-1-trix@redhat.com> <0f8a8857-5e18-e49a-0361-197b4bc892ab@infradead.org> <026ee207-3b90-c7ae-a7fd-66a34cd3ee90@redhat.com> From: Randy Dunlap In-Reply-To: <026ee207-3b90-c7ae-a7fd-66a34cd3ee90@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/25/23 09:51, Tom Rix wrote: > > On 2/25/23 9:46 AM, Randy Dunlap wrote: >> Hi-- >> >> On 2/25/23 09:39, Tom Rix wrote: >>> A rand config causes this link error >>> ld: drivers/tty/serial/earlycon.o: in function `parse_options': >>> drivers/tty/serial/earlycon.c:99: undefined reference to `uart_parse_earlycon' >>> >>> The rand config has >>> CONFIG_SERIAL_CORE=m >>> CONFIG_SERIAL_EARLYCON=y >>> CONFIG_SERIAL_FSL_LPUART=m >>> CONFIG_SERIAL_FSL_LPUART_CONSOLE=y >>> >>> SERIAL_FSL_LPUART should have been selected instead of depends on-ed. >>> >>> Signed-off-by: Tom Rix >>> --- >>>   drivers/tty/serial/Kconfig | 2 +- >>>   1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig >>> index 625358f44419..b24d74d389fc 100644 >>> --- a/drivers/tty/serial/Kconfig >>> +++ b/drivers/tty/serial/Kconfig >>> @@ -1313,7 +1313,7 @@ config SERIAL_FSL_LPUART >>>     config SERIAL_FSL_LPUART_CONSOLE >>>       bool "Console on Freescale lpuart serial port" >>> -    depends on SERIAL_FSL_LPUART >>> +    select SERIAL_FSL_LPUART >> Most other _CONSOLE Kconfig have: >> >>     depends on SERIAL_FSL_LPUART=y > > commit 5779a072c248db7a40cfd0f5ea958097fd1d9a30 removed the =y. so it could be built as a module. > uh. But it's still a bool, not a tristate. How does that work? > >> >> e.g. >> >> but I noticed a few others with a similar problem. >> >>>       select SERIAL_CORE_CONSOLE >>>       select SERIAL_EARLYCON >>>       help > -- ~Randy