[v2] tty: serial: fsl_lpuart: select SERIAL_FSL_LPUART for SERIAL_FSL_LPUART_CONSOLE
Message ID | 20230226145441.3150640-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1989074wrd; Sun, 26 Feb 2023 07:32:52 -0800 (PST) X-Google-Smtp-Source: AK7set+tyO7wrIZ3bigfTz/30wUA+CsO4Pj04wzHJ38NnxH12MbrNYasVvVM3mji+uoROOg15mvo X-Received: by 2002:a05:6a00:2e83:b0:5d9:bfc9:a4f with SMTP id fd3-20020a056a002e8300b005d9bfc90a4fmr13296908pfb.3.1677425571977; Sun, 26 Feb 2023 07:32:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677425571; cv=none; d=google.com; s=arc-20160816; b=KcezdBom0iukg81m/7QWEypM6Yjk0D3g0kUTnR0THUsybnVHS9jvccPNNW68j8f8Y8 ccTzKEus7OpG53DxepyNChjqO2iIN6EtvjVmyvyd6EnOV0nBrpWuLSwNx9JcXvpsgcWs wnugs+D19u+vXr92g97ifHw06sc0LCFR8ajmHxtL1IKtLLOg6uhYDvx2hiz2V6Eabzim FeRLmSuaAwFFVzb5kC1iHPu3Giw5+DE0XJTRyaNTWv8Vt2afaPTxSJCcJ8M8AC5uEt+N fSCDXU5Z89ivP+0lzt3AcVKUtQ/enprqzKC99EYMvfzuMPzl2kn2dm+qJFDSKoBuw7oE 4CIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oP3oPuchm6C78y0w7FcABuS+2qv7jrRkSYqeHoyGogM=; b=VUGuJN94dXjIeLINopZicLIgrS9tg5rKvPtm/oBkChmQQmiCePigCK7/6S1QOsSUF0 lwUPmMK1rsvcj1nStlUNJKUKC/1Pmv+WjtnQWiV3v/EfiIP3kNwX42YTq77XXY8fb4rT Fx66RXecZ2kGrBVTJ/eOQ3Oxjxxxc2DiG70UsEbCezrW80G2krx/SmU8IjBYY7vhUrwc A3ERKnAU1l2li+hznTw2u6f1txNa95DviLkUibHyQi+WHF0FcsmuJFFWtqwtVtOZaETs x66q/coa95xRPrHyGGd9ONVlNYbu4pEJruX8osEonPTtxLiwfBtC8yiphKXkueGyPAb+ Bb0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EFyqWWn6; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 193-20020a6302ca000000b004e2e673f492si4781663pgc.530.2023.02.26.07.32.39; Sun, 26 Feb 2023 07:32:51 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EFyqWWn6; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231859AbjBZPQt (ORCPT <rfc822;tertiaryakionsight@gmail.com> + 99 others); Sun, 26 Feb 2023 10:16:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbjBZPQb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 26 Feb 2023 10:16:31 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A006520576 for <linux-kernel@vger.kernel.org>; Sun, 26 Feb 2023 07:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677423912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=oP3oPuchm6C78y0w7FcABuS+2qv7jrRkSYqeHoyGogM=; b=EFyqWWn6TboWgX/FvVOJqQTgBljeMvOKtOak7aL4KuqQJmoAZ2gPkdermCNiZajuEURIoW N4YrwPI3lK+FjkfOROaS+bB/l8X3i7cODNcLOgG6ZM0829J0V/F0hV1h36QDVQh88D2mP5 nj3vqdBItxd/gKoMNJDbXnV4dUNLrTo= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-549-siEkVi1SN0y5ELi2tsttoQ-1; Sun, 26 Feb 2023 09:54:47 -0500 X-MC-Unique: siEkVi1SN0y5ELi2tsttoQ-1 Received: by mail-qv1-f70.google.com with SMTP id e9-20020a0cf749000000b00571f1377451so2119575qvo.2 for <linux-kernel@vger.kernel.org>; Sun, 26 Feb 2023 06:54:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oP3oPuchm6C78y0w7FcABuS+2qv7jrRkSYqeHoyGogM=; b=6hvRrInv+oMFzb6dz1uFTg5pd2ijD07JJNyVLxBswNA5PL13b3YXIcB11YOHTm914E 99+uxqsM4gRB8Lwz7vhppZNoSxEDmGl5j4DtN/r93uPT0QUHia06C05jKx8CNv8H45u0 bF7vwO9CFibOf8esj+DNaiVdw1AeDLlRQuDxR1a7ZhOL02Nt/qhL/KKMsVV43e2eJRP+ m64zoQWP0TAYGO1FHOBaoHHCUK5VWkfj5SY4mno07grP0IqLMeCRbnh42SGnescqlILP xfIwY+6//iGXwpi9dpqXOBg0TwBevHAUTzmRbaLfc5DTrzHNgpZY/o/Zt+VUCainueGG X1Dw== X-Gm-Message-State: AO0yUKXGe5ulMcsTEb9698AbkUbNKdacNdZSdNeIScnrEro6U7PYZk0p npmvU4b4G0j9N1HGJCU7nUUfI315RehCG27XKz8Pzgd05hjiZiEwr2ID9Q0QZN30bUfnPrgV+FG 9GgFL3kkD9RsXfctnK8ENSfHC X-Received: by 2002:ad4:5bae:0:b0:56e:957f:dd5f with SMTP id 14-20020ad45bae000000b0056e957fdd5fmr35934662qvq.50.1677423286584; Sun, 26 Feb 2023 06:54:46 -0800 (PST) X-Received: by 2002:ad4:5bae:0:b0:56e:957f:dd5f with SMTP id 14-20020ad45bae000000b0056e957fdd5fmr35934643qvq.50.1677423286344; Sun, 26 Feb 2023 06:54:46 -0800 (PST) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id f64-20020a37d243000000b0073ba46a585asm3127203qkj.64.2023.02.26.06.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 06:54:45 -0800 (PST) From: Tom Rix <trix@redhat.com> To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix <trix@redhat.com> Subject: [PATCH v2] tty: serial: fsl_lpuart: select SERIAL_FSL_LPUART for SERIAL_FSL_LPUART_CONSOLE Date: Sun, 26 Feb 2023 09:54:41 -0500 Message-Id: <20230226145441.3150640-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758908196917129456?= X-GMAIL-MSGID: =?utf-8?q?1758908196917129456?= |
Series |
[v2] tty: serial: fsl_lpuart: select SERIAL_FSL_LPUART for SERIAL_FSL_LPUART_CONSOLE
|
|
Commit Message
Tom Rix
Feb. 26, 2023, 2:54 p.m. UTC
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.
After applying the configs are
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_FSL_LPUART=y
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
Signed-off-by: Tom Rix <trix@redhat.com>
---
v2: Add how the configs changed to commit log
---
drivers/tty/serial/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Tom, [adding the recent commit signers] On 2/26/23 06:54, 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. > > After applying the configs are > CONFIG_SERIAL_CORE=y > CONFIG_SERIAL_EARLYCON=y > CONFIG_SERIAL_FSL_LPUART=y > CONFIG_SERIAL_FSL_LPUART_CONSOLE=y This works, but I thought that the point of the recent patch was to make the driver modular. You said: "commit 5779a072c248db7a40cfd0f5ea958097fd1d9a30 removed the =y. so it could be built as a module." That's not the same as what is happening here. I think it would be better to revert the commit mentioned above. > Signed-off-by: Tom Rix <trix@redhat.com> > --- > v2: Add how the configs changed to commit log > --- > 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 > select SERIAL_CORE_CONSOLE > select SERIAL_EARLYCON > help
On 2/26/23 7:44 AM, Randy Dunlap wrote: > Hi Tom, > > [adding the recent commit signers] > > On 2/26/23 06:54, 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. >> >> After applying the configs are >> CONFIG_SERIAL_CORE=y >> CONFIG_SERIAL_EARLYCON=y >> CONFIG_SERIAL_FSL_LPUART=y >> CONFIG_SERIAL_FSL_LPUART_CONSOLE=y > This works, but I thought that the point of the recent patch was to make the driver modular. > > You said: > "commit 5779a072c248db7a40cfd0f5ea958097fd1d9a30 removed the =y. so it could be built as a module." > > That's not the same as what is happening here. As you pointed out SERIAL_FSL_LPUART is not tristate so the it likely never worked to be modular. Let me fiddle a bit with this and see, if it doesn't work, I'll submit the revert. Tom > > I think it would be better to revert the commit mentioned above. > >> Signed-off-by: Tom Rix <trix@redhat.com> >> --- >> v2: Add how the configs changed to commit log >> --- >> 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 >> select SERIAL_CORE_CONSOLE >> select SERIAL_EARLYCON >> help
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 select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON help