Revert "tty: serial: fsl_lpuart: adjust SERIAL_FSL_LPUART_CONSOLE config dependency"
Message ID | 20230226173846.236691-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 v21csp2051759wrd; Sun, 26 Feb 2023 10:27:35 -0800 (PST) X-Google-Smtp-Source: AK7set9oSRA9bapYDEPLXj5rYOllGIdxuRSaN9WIMkKJ7aOmejp4UiiH5FBiGbAuTgJkxX9i5cY/ X-Received: by 2002:a05:6a20:1449:b0:cc:d44a:beb6 with SMTP id a9-20020a056a20144900b000ccd44abeb6mr5653082pzi.5.1677436055199; Sun, 26 Feb 2023 10:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677436055; cv=none; d=google.com; s=arc-20160816; b=e8IbSoGshZ5ip1c1fDeZt0MiP89ibFRZlux2gdXPU70i4Kr9QM+tiss/WtIyUW+ekW Jy/0y1WGUZf/elQ3/RNoSjS/Bdy2tq0asz4T0JX7N3Bn/eaVynRPZNzsPTL1SHqndzfJ 2bo0QqgmNs5neoerNkgcNR6QVVCZZokaEFPBhbScweloyTE7WPhgQ3xfHuJn3N4kp684 lYeIvvzTHN6Kuaklae1X7ID0qVylv7mDak66WVr15TFdacXH8wHM8qU2h7lDzwVaBYlr rCrUChQwVo3iWNVu1r/dGREn7f9ajcMOFtaSGb5r/5lAsvMSmiNtLRKoH0Bvhe+9mJN5 8uow== 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=i/hpLCH1J1OZC0aaq8N5qErte4jZaIcaYpEnIIPJejU=; b=lyibS4zgo3kC7U2xRXkqZF77LU261salnLKle2Szxp9TfQ+Y1lGaTa4qxIEN5tHxpk sznxt2CPg+9AYkVlWsp1hKXwbSaMHO+aC1H0mbBRpJrUOW3ZQyx3IH03qDF+HEGKSk+G 73pgBqZTuUA7J9s0Mk6qeqhc9lGx1EYV3c8H3vj0mWCqfVnedX3oFGqtnhmsHiHm/TMl qS+zPMi8UNmYz26SBi7UH3c7b+Z+6m28z1nIHhFfoRurR9TMkBWPEG0oLvrW2ifOl+OL RXGCyXOc2iZCHkU2IzsiWgCPn1WDuefK0ouWcylu8kwLTOL206AWjE92Y79IkUfgyCwj iWuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=frfmgJnm; 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 k5-20020a6568c5000000b00503011cbc38si4952645pgt.91.2023.02.26.10.27.19; Sun, 26 Feb 2023 10:27:35 -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=frfmgJnm; 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 S229791AbjBZRju (ORCPT <rfc822;tertiaryakionsight@gmail.com> + 99 others); Sun, 26 Feb 2023 12:39:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjBZRjs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 26 Feb 2023 12:39:48 -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 8937518B08 for <linux-kernel@vger.kernel.org>; Sun, 26 Feb 2023 09:39:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677433140; 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=i/hpLCH1J1OZC0aaq8N5qErte4jZaIcaYpEnIIPJejU=; b=frfmgJnmSUoLV8ygg0s0d5Sq/mv11O8vZYXCSO8itEleZlSczpk3ni1YLdWMG3fnBsAhBF SC5jA8gyV5Y8w7CB/Wa2NOBbs5vAeu8CEKI9ZGLfLVCF+l8K6a23ry2wDe9Ouasga0VWgd p0RVVJ1BnzpN8up7gHgeLEg+q4xcmPs= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-624-eL5GCYFpOwKk1teM2tGIeQ-1; Sun, 26 Feb 2023 12:38:59 -0500 X-MC-Unique: eL5GCYFpOwKk1teM2tGIeQ-1 Received: by mail-qk1-f199.google.com with SMTP id e14-20020a05620a208e00b0074270b9960dso2716761qka.22 for <linux-kernel@vger.kernel.org>; Sun, 26 Feb 2023 09:38:59 -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=i/hpLCH1J1OZC0aaq8N5qErte4jZaIcaYpEnIIPJejU=; b=G06vj9IsP8teyRtalWULErcVFfBGh5Zs1WnMgU0Noz0ab9K+n0IBGUfZp836yYOx2I 6XMRMQ8ns7Rw/k+aZ0nIacwYOSrFCdRz6SU9ZcVWI9WD/HSjjvVwxymxv4ap/x917r6Q MZ7+gbxTTIMzkmQeiOtbi4LJeatyGHGu15Qj4G2shr+ieWpqJLb+dsLSROuvpO0pyqPQ oBpnZQwZ9IVdCWTGqB47Qc2uCkjQ1rh8GICcBSyYdNINdPm4B09fwgURYIqFsFfsHHc9 JW7hGfhIIpAeJUMSeu0hbU3Dj5+nI/q43J7G+YADoJGxYuk81efGu39V/gwH/K2wZvxl 0qlw== X-Gm-Message-State: AO0yUKVrcU/RAimd80bEjxPzPQm8vK1/QiPrqIxeTrt1N+OCJ2irNd56 74C+QLIiyF9R8lcg25S+CDbID+d+ACv5C/+8wq2ouK+7YIWpP8WbAqdKU6Z0dhB2b10yET+cj7Z myLL349nDTF8/BgpSqcYKhyMz6T1qgQ== X-Received: by 2002:a05:6214:400d:b0:56e:f1fd:f16c with SMTP id kd13-20020a056214400d00b0056ef1fdf16cmr10742453qvb.20.1677433138670; Sun, 26 Feb 2023 09:38:58 -0800 (PST) X-Received: by 2002:a05:6214:400d:b0:56e:f1fd:f16c with SMTP id kd13-20020a056214400d00b0056ef1fdf16cmr10742440qvb.20.1677433138458; Sun, 26 Feb 2023 09:38:58 -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 r191-20020a37a8c8000000b00729a26e836esm3341343qke.84.2023.02.26.09.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 09:38:58 -0800 (PST) From: Tom Rix <trix@redhat.com> To: gregkh@linuxfoundation.org, jirislaby@kernel.org, sherry.sun@nxp.com, jindong.yue@nxp.com Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix <trix@redhat.com> Subject: [PATCH] Revert "tty: serial: fsl_lpuart: adjust SERIAL_FSL_LPUART_CONSOLE config dependency" Date: Sun, 26 Feb 2023 12:38:46 -0500 Message-Id: <20230226173846.236691-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=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: <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?1758919188958081993?= X-GMAIL-MSGID: =?utf-8?q?1758919188958081993?= |
Series |
Revert "tty: serial: fsl_lpuart: adjust SERIAL_FSL_LPUART_CONSOLE config dependency"
|
|
Commit Message
Tom Rix
Feb. 26, 2023, 5:38 p.m. UTC
This reverts commit 5779a072c248db7a40cfd0f5ea958097fd1d9a30.
This results in a link error of
ld: drivers/tty/serial/earlycon.o: in function `parse_options':
drivers/tty/serial/earlycon.c:99: undefined reference to `uart_parse_earlycon'
When the config is in this state
CONFIG_SERIAL_CORE=m
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_FSL_LPUART=m
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
Fixes: 5779a072c248 ("tty: serial: fsl_lpuart: adjust SERIAL_FSL_LPUART_CONSOLE config dependency")
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/tty/serial/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2/26/23 09:38, Tom Rix wrote: > This reverts commit 5779a072c248db7a40cfd0f5ea958097fd1d9a30. > > This results in a link error of > > ld: drivers/tty/serial/earlycon.o: in function `parse_options': > drivers/tty/serial/earlycon.c:99: undefined reference to `uart_parse_earlycon' > > When the config is in this state > > CONFIG_SERIAL_CORE=m > CONFIG_SERIAL_CORE_CONSOLE=y > CONFIG_SERIAL_EARLYCON=y > CONFIG_SERIAL_FSL_LPUART=m > CONFIG_SERIAL_FSL_LPUART_CONSOLE=y > > Fixes: 5779a072c248 ("tty: serial: fsl_lpuart: adjust SERIAL_FSL_LPUART_CONSOLE config dependency") > Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Thanks. > --- > 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..0072892ca7fc 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 > + depends on SERIAL_FSL_LPUART=y > select SERIAL_CORE_CONSOLE > select SERIAL_EARLYCON > help
On 26. 02. 23, 18:38, Tom Rix wrote: > This reverts commit 5779a072c248db7a40cfd0f5ea958097fd1d9a30. > > This results in a link error of > > ld: drivers/tty/serial/earlycon.o: in function `parse_options': > drivers/tty/serial/earlycon.c:99: undefined reference to `uart_parse_earlycon' > > When the config is in this state > > CONFIG_SERIAL_CORE=m > CONFIG_SERIAL_CORE_CONSOLE=y > CONFIG_SERIAL_EARLYCON=y > CONFIG_SERIAL_FSL_LPUART=m > CONFIG_SERIAL_FSL_LPUART_CONSOLE=y > > Fixes: 5779a072c248 ("tty: serial: fsl_lpuart: adjust SERIAL_FSL_LPUART_CONSOLE config dependency") > Signed-off-by: Tom Rix <trix@redhat.com> Acked-by: Jiri Slaby <jirislaby@kernel.org> thanks,
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 625358f44419..0072892ca7fc 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 + depends on SERIAL_FSL_LPUART=y select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON help