Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1558269pxb; Fri, 24 Sep 2021 07:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9GauZkv6aNZmmObIIux9+rG1Gx17T5Tibk+QXxSUSZhsAf1Zh298WPSadvs3Or2WV0Wvu X-Received: by 2002:a6b:3e84:: with SMTP id l126mr9406213ioa.151.1632492744452; Fri, 24 Sep 2021 07:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632492744; cv=none; d=google.com; s=arc-20160816; b=AQ649eI7PQoJb44biw4U+lU5n/BsivDtamS7hRTa+LUD43XJ1y7jxqLog5ZsmP+nWx qlugRkU/lwoHrcecCpchK2GiswMWge0EZkTzkIzvl0xlmm0l8Ne7aCN2p65FEo5KVrVW LPq0ruxKZE+twk3QxOtwX7bowgb8LcU1za2iPU0wWqeAFWBzKpCHvoeU/yFOXfT3Svuu EQQ7SLcF83WwXYP6XVdSjmvn+9ITXl8834T2g7bvuuNF3QnROt4kWtJSnSmdPQb419ht gdE3R2LduoRo6DL0/6qyO4vghbY98MI22+KfaW6nBaHKCiNNmcZYjVus+p60oEWpGixW wENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=A22qoG5kf8h5fiYkf/hw9TuBz3CLxHZcnvXySE432/0=; b=Q5Z26GYq3Zxr3wtT4KlL3R26yWyLAnGnrfKJ9ud+YKy/vnG7Q69J8hFs8OGwNKe5+2 lt8rQ9w86T5fglG6S2pcLiV2KejLGB2X79QCNyIHUY6pr4Yw4etNnZ1k8UBTrG09yiLG c0VOiEOfDH/IM1lCqvwzF8UqD+iHC4N364FplG/Bu/t6R4KRhe+SCQBDyGMdonLTqBDR XjAmK3a72grdSQBY3TKdc6vwahPYQceS45y+Ljf/a0ovlQhH16H8x45EHFEIdP2p+aFV qdxyfM3YuPhQDEJ/cCcO5fnZlhXFkSWEnfsdpB7BlV5ASpCcI/FHRw3uwBdTFXAWIyo9 YDgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HZKkjFeK; 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 n32si4440496ioz.14.2021.09.24.07.12.06; Fri, 24 Sep 2021 07:12:24 -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=HZKkjFeK; 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 S1346720AbhIXOMP (ORCPT + 99 others); Fri, 24 Sep 2021 10:12:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:59702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346713AbhIXOMN (ORCPT ); Fri, 24 Sep 2021 10:12:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C9FBB610D1; Fri, 24 Sep 2021 14:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632492640; bh=MsWlnwsKESy1TU57hlUOkUOlD9EJaHKzGtqrEkIEBDg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HZKkjFeKtmwmvbHaZSp9rgzaOrE/Ar219AzlNHrGa+tlU5gfeApyxdWN/Fk54vLt1 gBg1v/Xox3BsCVdajaYGyta/tqc9VCN43UM8zfosWIVMLox1TLCbPCghnUicvdwXFq 8yCYnkJDq/x0gqRNVRnccih+yc27JS7Cge78gNkPfOxT3jJtbfRV3dSIMg9kABncuH dLZlGkLjo6PFwt36ib/aYqiXiequnigNveoptRZkl0mkuMY+HW5qYWiD3JvdxFrX82 FMOXz3+2H2yxUk/rhABiO7DSdyGyD0zfXc9xQ/eYzYyS5PF2W5ayzz4zoyoSjYbZUG hR+jwjTrhfnRw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1mTluV-000170-G1; Fri, 24 Sep 2021 16:10:43 +0200 Date: Fri, 24 Sep 2021 16:10:43 +0200 From: Johan Hovold To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , Jiri Slaby , Shawn Guo , Li Yang , Scott Wood , linux-serial@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] serial: 8250: SERIAL_8250_FSL should not default to y when compile-testing Message-ID: References: <6421f256407262afd658ffa74ec9430581528a7d.1632467477.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6421f256407262afd658ffa74ec9430581528a7d.1632467477.git.geert+renesas@glider.be> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 24, 2021 at 09:12:30AM +0200, Geert Uytterhoeven wrote: > Commit b1442c55ce8977aa ("serial: 8250: extend compile-test coverage") > added compile-test support to the Freescale 16550 driver. However, as > SERIAL_8250_FSL is an invisible symbol, merely enabling compile-testing > now enables this driver. > > Fix this by dropping the COMPILE_TEST default again, but making the > SERIAL_8250_FSL symbol visible instead. > > Fixes: b1442c55ce8977aa ("serial: 8250: extend compile-test coverage") > Signed-off-by: Geert Uytterhoeven > --- > v2: > - Split in two parts. I realised that we can do better than this. I've prepared a patch that preserves the old behaviour of always enabling the option on platforms that may need it while also not enabling it by default when compile testing. Note that SERIAL_8250_FSL only enables a workaround for an erratum in the Freescale UARTs in the 8250 driver (leaving the later added ACPI support aside) and we shouldn't make it easier to disable it by mistake. > --- > drivers/tty/serial/8250/Kconfig | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig > index 808268edd2e82a45..0af96f3adab517f6 100644 > --- a/drivers/tty/serial/8250/Kconfig > +++ b/drivers/tty/serial/8250/Kconfig > @@ -361,9 +361,12 @@ config SERIAL_8250_BCM2835AUX > If unsure, say N. > > config SERIAL_8250_FSL > - bool > + bool "Freescale 16550-style UART support (8250 based driver)" > depends on SERIAL_8250_CONSOLE > - default PPC || ARM || ARM64 || COMPILE_TEST > + default PPC || ARM || ARM64 > + help > + Selecting this option will add support for the 16550-style serial > + port hardware found on Freescale SoCs. > > config SERIAL_8250_DW > tristate "Support for Synopsys DesignWare 8250 quirks" Johan