Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1303433pxb; Wed, 10 Feb 2021 05:29:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRCkmlwlB/xC09OtoWTNPveron6dPBrT42We/+5qwchA+i2XWO+OJxX/s4hFgbpH2kxZ5E X-Received: by 2002:a05:6402:268a:: with SMTP id w10mr3132286edd.331.1612963780684; Wed, 10 Feb 2021 05:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612963780; cv=none; d=google.com; s=arc-20160816; b=ttQ2YBAFOg9sOuXV2EIl+VMW5NLyMfyTIMlkPV88E4hWioPSjG7UvIw5IJ3u1A3A6b z21/FYOFwJDCyQ8Wd1TwB19JqBGfEx+JUTXbHu7ccb5aNx1YKheRx1y4QLQP+A7qPzvk cPY6YSNS8XTHnX0lyFRhKxsEfKLEnTZnxA3yatiu3XVdTKZrBfjK25w4esDU7hQhnunT b2Mu7tW0SS9VKWdi4wvB2MeFUR09TuUwl21WJIpgsBGfe+BYiCzzhAXR7LjJpJmT7cen wDxRGTDXBGgFXXg/a0JdMRQUwrffgnwAQLTvVsf187yVzU3I2rZpblKyH/7v7VZTHoqF uRDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a5P3pXqsbExwoBP/miAImNEdFWZXxnHrDvNJnbzyXCU=; b=ZK0klo+6KWu87/1DOXenLDLXlGv55yNHvmTmE5YmHQuMWxUKCGQVckapNq8ftXGTe9 AN9kZGz+UyUzqAKgTIO1MDbCRok+Gqd7Wsm4FCsZatSulXYi+Lkbfih4UvaWf7NJCE60 PHj2ry4lIHE3vgF+44w7CpLh9c2des0o91kqIWjO5uALUZoinfwt2hzdiyFddj0RtJrA 8hM9ozBIDFLm2F13ogDDLObEnCSdHFNQoC26mcNAqMU2mNA0ehsICUxoAu7pfK4mH2Hs iiBUvoTli0uR0syGVqZQwkLc8vmsr4FhUAHcHKUQC9zPuR1wXCLkbFn0lZUEdZ0Vj7aS 1pYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dOPtjQuc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k27si1313481eje.568.2021.02.10.05.29.16; Wed, 10 Feb 2021 05:29:40 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dOPtjQuc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbhBJN0W (ORCPT + 99 others); Wed, 10 Feb 2021 08:26:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231274AbhBJN0P (ORCPT ); Wed, 10 Feb 2021 08:26:15 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA730C0613D6 for ; Wed, 10 Feb 2021 05:25:33 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id l12so2991380edt.3 for ; Wed, 10 Feb 2021 05:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a5P3pXqsbExwoBP/miAImNEdFWZXxnHrDvNJnbzyXCU=; b=dOPtjQucHUQBnPjtYZ6SUrbg/sixrKkmgFF2h4JYMQnw/WPBs5hZfAEOazfKi1N8OA nNHL+QhlgZmPibA9meGj1nzLhnMZ6E60gGy8HHfHAkmdH+rJPqnb+56inCFiJqrA8jWI eCVn9vwqgzMFKNdxOkVxRVeMe9mfTAAybqeGShTNgRMiwsUzAJatyDktIPkcLTDJT6gD OWtSfGmAafaO3rKQzqtAzbph+4pt+0UZS7V79jDtIIIqHHL2/Z3TQFRUIdlqcfIoKYGw sc2R+cnnJljZcSU+Bra491nqkXMmpPrR9YljVQihJse7PKwDCqCXaKqnGd5EqsEErtfQ WYvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a5P3pXqsbExwoBP/miAImNEdFWZXxnHrDvNJnbzyXCU=; b=tyaQI0OXIidsBoe2UJzqg35jSj2mOC0Rg1BALhYNYF68ujO3KfditkZ0QWKNtSpGRY BuW6b+EMDjt3mlq4kZ1nC0mcs+tyVDxIMlm4QSe6x8rgTn0H3WL0Tozz29KrfoG9x4CM YiZ88Ny6iXfgsLE7ptPt70t0ga0aHK66apdbMD4iBAwyPEu6WCu6qCqtbOmfz0mu28YK aa3yAg1xMKd8XUeFWBP+9nHEtfSiFww37eeS/Hm/6vuj6QLDKowY6NstkRf04mUGxpYn TsNyIA8ILLfqT/ejOHdxqc+5RsKxtBXscdWpy9ymcARWJEuk1NOFUV/pAJTTLXNAEbJR kuPg== X-Gm-Message-State: AOAM533egkKYOB89NqC+zuotOItqneCSVprSs7Crcq0GID9tIii/t6+0 XtyrpHe8ZlrysCg+ULFlejQGKgaxIypxHD72HHgtJg== X-Received: by 2002:a50:fe11:: with SMTP id f17mr3135651edt.88.1612963532354; Wed, 10 Feb 2021 05:25:32 -0800 (PST) MIME-Version: 1.0 References: <20210208145153.422093-1-geert+renesas@glider.be> In-Reply-To: <20210208145153.422093-1-geert+renesas@glider.be> From: Bartosz Golaszewski Date: Wed, 10 Feb 2021 14:25:21 +0100 Message-ID: Subject: Re: [PATCH] gpio: GPIO_MXS should not default to y, unconditionally To: Geert Uytterhoeven Cc: Anson Huang , Shawn Guo , Sascha Hauer , Linus Walleij , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2021 at 3:51 PM Geert Uytterhoeven wrote: > > Merely enabling CONFIG_COMPILE_TEST should not enable additional code. > To fix this, restrict the automatic enabling of GPIO_MXS to ARCH_MXS, > and ask the user in case of compile-testing. > > Fixes: 6876ca311bfca5d7 ("gpio: mxs: add COMPILE_TEST support for GPIO_MXS") > Signed-off-by: Geert Uytterhoeven > --- > drivers/gpio/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 5fdf526fe973da38..412728ff2ab45c0d 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -442,8 +442,9 @@ config GPIO_MXC > select GENERIC_IRQ_CHIP > > config GPIO_MXS > - def_bool y > + bool "Freescale MXS GPIO support" if COMPILE_TEST > depends on ARCH_MXS || COMPILE_TEST > + default y if ARCH_MXS > select GPIO_GENERIC > select GENERIC_IRQ_CHIP > > -- > 2.25.1 > Applied, thanks! Bartosz