Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2010263pxb; Fri, 24 Sep 2021 17:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGrcO4uqp/1avkCYGl3X2R5MKMflfJKId8xZpHbuYzCebGmCqVE6P52Re3mASWTgwV4Umi X-Received: by 2002:a17:906:4093:: with SMTP id u19mr14835537ejj.110.1632531131581; Fri, 24 Sep 2021 17:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632531131; cv=none; d=google.com; s=arc-20160816; b=buJzZa2mDvMP/E1hMjrh315Gk6SkrXF1LGkd6Pdat7g5Z1DHVzS/1/HxozL2YT7sgQ KNsukxjM4zbuVj3n/R/DGi37iJIsoAWg0VV+P+yJZzMDy7uDnuvJdlbvH4mo846Hji7h xqpHf3oFu8VP8XhTVRQ4eAZKeIfHLJT/kX1SHJ3Wq5S6/vWQGGIq3pvCPdEBzSArA6ma vx+v9OTFKL5MoYBY63fLuVfUrSWPvpvUFbLjIEKhfoJkkDwRSK9Onsdr2iQZiUc2L2Q6 QzKD7V/XZ7ndUlsSkor/wAeXc/HFvb50r1xzXc38JCTHSguw+aFJdhd1D4bRZkRAJIum nciQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UK53wMwLOJvdnJvvfPo5LrxOuz1VM1EbGigwi2jDRrA=; b=g1T5gcFhMiT83vLT2u0F7crzfbpRFdrGGAZaaHiSOQE5S0ZbQ8hoXoljHVqsDLsusL 1bbVmWIxmIr8Jr1ixKv6YBf2JKoes5xkFgp7VmumifTWKOhIdaOi4/RJqGltI92mxyxq uM5mtVt6hMj74XFbDF+cirAmhTEnZMeyBxpsZ8TlsMdZ6PKe/1kdR1t1XrzOA49EPqXF xorBcXY3wsZkhnTP/Tia74F6I9bIZl/CIaQUOl15rW46NO9TFlVJLV1fVoiD6VWtpCFX zm4z+uexklPRPF6e6+ct1gh2zQ8z4Rzq0cJ7EzEvHX2x5T7+bbLDEfBon5sWf+3SZ6pG wZcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lnVgfeKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os28si2463115ejb.559.2021.09.24.17.51.33; Fri, 24 Sep 2021 17:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lnVgfeKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345556AbhIXOPF (ORCPT + 99 others); Fri, 24 Sep 2021 10:15:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:60480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345078AbhIXOOz (ORCPT ); Fri, 24 Sep 2021 10:14:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 722B361164; Fri, 24 Sep 2021 14:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632492801; bh=9FzflPSvRNuYL+0FLYUAyRLchX7APKhwtwvl5/cvnCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lnVgfeKnra6bOv3CxDPW8dODEeB+NZxz9nPundXZ7KqRUktkONycmi3oqO8Sw+eT3 x3o3vhLGOvlvxDGeOPIYPsTni7Ue4DTMgT3PoYB4Mky0/jAZ4ZC76TD2229HNc1sxj 9Cmn3N4WgmszYgDbANePd9rNP7YI2ZfFXZpYt5tklPmXi29gnzYD5IQwpfz2zuq+7d kurazXGUqlXqACVz0Z7bySPnX3XTK18wQjhjSX8v7q7mITfjwOuC7Nc4PobpChjY+z sPdJqISiThoYatIRTwmqz4HD0xN0GaIUx0uT04JSFOSCD8IMdy39OPSNgC1SfdNN13 3MgyFJ8ZGu+vg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1mTlx6-0001AF-Bb; Fri, 24 Sep 2021 16:13:24 +0200 From: Johan Hovold To: Greg Kroah-Hartman , Jiri Slaby , Geert Uytterhoeven Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] serial: 8250: allow disabling of Freescale 16550 compile test Date: Fri, 24 Sep 2021 16:12:32 +0200 Message-Id: <20210924141232.4419-1-johan@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <6421f256407262afd658ffa74ec9430581528a7d.1632467477.git.geert+renesas@glider.be> References: <6421f256407262afd658ffa74ec9430581528a7d.1632467477.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SERIAL_8250_FSL option is used to enable a workaround for a break-detection erratum for Freescale 16550 UARTs in the 8250 driver and is currently also used to enable support for ACPI enumeration. It is enabled on PPC, ARM and ARM64 whenever 8250 console support is enabled (since the quirk is needed for sysrq handling). Commit b1442c55ce89 ("serial: 8250: extend compile-test coverage") enabled compile testing of the code in question but did not provide a means to disable the option when COMPILE_TEST is enabled. Add a conditional input prompt instead so that SERIAL_8250_FSL is no longer enabled by default when compile testing while continuing to always enable the quirk for platforms that may need it. Fixes: b1442c55ce89 ("serial: 8250: extend compile-test coverage") Reported-by: Geert Uytterhoeven Signed-off-by: Johan Hovold --- drivers/tty/serial/8250/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig index 71ae16de0f90..39fc96dc2531 100644 --- a/drivers/tty/serial/8250/Kconfig +++ b/drivers/tty/serial/8250/Kconfig @@ -361,9 +361,13 @@ config SERIAL_8250_BCM2835AUX If unsure, say N. config SERIAL_8250_FSL - bool + bool "Freescale 16550 UART support" if COMPILE_TEST && !(PPC || ARM || ARM64) depends on SERIAL_8250_CONSOLE - default PPC || ARM || ARM64 || COMPILE_TEST + default PPC || ARM || ARM64 + help + Selecting this option enables a workaround for a break-detection + erratum for Freescale 16550 UARTs in the 8250 driver. It also + enables support for ACPI enumeration. config SERIAL_8250_DW tristate "Support for Synopsys DesignWare 8250 quirks" -- 2.32.0