From patchwork Sat Feb 25 17:39:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 61534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1605103wrd; Sat, 25 Feb 2023 10:16:24 -0800 (PST) X-Google-Smtp-Source: AK7set9W01TCiprcoCPszKX4/syRZIb4bJNrzEW6rc3uBj8mxgdebX4w4GqhtFmDMoIvmTEHKVNk X-Received: by 2002:a17:90b:1d88:b0:237:c52f:a54d with SMTP id pf8-20020a17090b1d8800b00237c52fa54dmr2453499pjb.21.1677348984512; Sat, 25 Feb 2023 10:16:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677348984; cv=none; d=google.com; s=arc-20160816; b=puLFr1GF1LxnMl7vhVdkXfjvoxvXdTZ3mo8071cHPqHXPyQJQPvHX6+3iTyh2tCnDR 8O+0EgWyNqEpCt96BDL+yHAD6HRSjO650sb6/JIPkyzdBrg3BKr+fCeSJXArMVgynnH5 nh/OHO0GznZN8isGovwqovpq9as4GNAIsJ4wys8gCmYuZaPO7sof/DqvszZ036OQ4dL4 FnmQEoJyVdgyyWuwu1Kr3ZB5jf4posUcVvw4zALaEP5II4BIZ/Qd1F66iSBYjysLXBRb Kr2YyesM5c8hIW0qApu30Db1M9Tc9K+k3l5f8Iv4D0+gVybSOar+CCVPNxNxkKEE2bvq c6sg== 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=t2xDexvbEpstvAGccLQfRgpoKZ24pDQp0rCGKgyksKU=; b=H8qp8ZMN0fqPDyiqbaWw7St0nPYzGoakUcypAq75T+RzaNroEc6tmtC8akOMVOm9af nkLDO7f9+PiTPp4vq1R3F8Sr0srCThul3+ffax6ORyJzVkfSz1BJPm+8LPTMxdCs5ihS ZaGBmp2TJjvyR0QkkXPodLaw/0/Ey4HzCgoT8zh3Mn5hFUIEi42flTRCUVNXVs17/xoS XyARTBiIe/G9FoH1CMiJIIxute3nL90Gm6vir40pAhC6u1CqrcpXvhpSFZkQHXMV8UiE FoNrt+RpqlJePQZ5BVE3fppxaSN9eoiGackJzspC8j3P/FhGHUH7Xir5XAPWsk8uJkFd V4Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R3UM+yNW; 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 v23-20020a17090abb9700b00233e0d29cbbsi5421109pjr.102.2023.02.25.10.16.11; Sat, 25 Feb 2023 10:16:24 -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=R3UM+yNW; 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 S229515AbjBYRlW (ORCPT + 99 others); Sat, 25 Feb 2023 12:41:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjBYRlU (ORCPT ); Sat, 25 Feb 2023 12:41:20 -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 489FD61B5 for ; Sat, 25 Feb 2023 09:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677346832; 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=t2xDexvbEpstvAGccLQfRgpoKZ24pDQp0rCGKgyksKU=; b=R3UM+yNWcSuxLGVCqFJ48w3LitpXnlIZ1y1VDaxRPz/7n93ozNeGp7yeTnUbMI7CTvuqiY XxwlsPOCwbyil9s/2mHsLquZcNLQHUBFjx+gMgjvnrA0dfa7yOjit/VuR/N4uhQzr+OuEs hqOQQL/kg/StO0GCiAS/ncEQZs6Dp6g= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-140-xSMlBxtjPEG4eEVBsyoqSA-1; Sat, 25 Feb 2023 12:40:30 -0500 X-MC-Unique: xSMlBxtjPEG4eEVBsyoqSA-1 Received: by mail-qt1-f198.google.com with SMTP id k13-20020ac8074d000000b003bfd04a3cbcso140608qth.16 for ; Sat, 25 Feb 2023 09:40:30 -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=t2xDexvbEpstvAGccLQfRgpoKZ24pDQp0rCGKgyksKU=; b=PXu5j/eNBne7v9cALdCJYiX+Kk9ZzfI8jSbWNt66OL2BdfIJisWth1yZieJex2n/Ee YQ1lo3m0DQKxwkZ/IX0cSfCziCQ7M4mxcBdggdYjx748JoN1TPp+xZ+etVGTh8xTrg01 SZgv79SatJQc964q8geKrRpR+fP5JgVrwlmoQzKsL6PL5ZiNPWQWGpT5IgQhfqRKfzHb 288pL5ySb5ceXokt3iTxn4go3sNfn0a3gwGKMa5fxo8cf4nNTL2g0REhVvRood5Ak95r qr1OgHLI8nVU30jbsA3Zqi1yfsSz25k6z2vPU8axfArZ9OaM/kxOo/JGlSfUjamJ7oTs JCRg== X-Gm-Message-State: AO0yUKU9vOdWGyx23liVLHBH41vnrn1PH7lM4Tvg6bhjM85aEbwatS3/ MQELcPUmOXm5pgLWjLJX4Yy0ugi8FoxDCsNo8LlX9/+QwoYK2D6H5gragKs0iwLU0V1FQKpxnX3 ugt8VgqET0rQNwsStcd3Z/iy1 X-Received: by 2002:ac8:5a8f:0:b0:3bb:995c:424c with SMTP id c15-20020ac85a8f000000b003bb995c424cmr7145949qtc.22.1677346830400; Sat, 25 Feb 2023 09:40:30 -0800 (PST) X-Received: by 2002:ac8:5a8f:0:b0:3bb:995c:424c with SMTP id c15-20020ac85a8f000000b003bb995c424cmr7145922qtc.22.1677346830167; Sat, 25 Feb 2023 09:40:30 -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 z2-20020ac86b82000000b003bfbf16ad08sm1590282qts.74.2023.02.25.09.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 09:40:29 -0800 (PST) From: Tom Rix To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] tty: serial: fsl_lpuart: select SERIAL_FSL_LPUART for SERIAL_FSL_LPUART_CONSOLE Date: Sat, 25 Feb 2023 12:39:49 -0500 Message-Id: <20230225173949.651311-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758826400419331982?= X-GMAIL-MSGID: =?utf-8?q?1758827888718647919?= 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 select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON help