Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4051581pxb; Mon, 8 Feb 2021 06:51:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyk252UZNktEiWOssrVAKwZsB4GSqByFFJePGn89XU/cggQLVwvsk12boqqesMijid809Yu X-Received: by 2002:a50:9d4d:: with SMTP id j13mr17180349edk.83.1612795915056; Mon, 08 Feb 2021 06:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612795915; cv=none; d=google.com; s=arc-20160816; b=kluB0y8giGMNNEYKURYnCBe9KDLU6gJcX9ehNCV8+XWGy2aWZ80tgdZpX1M40mGp/3 CCmXxmCpHKGSnRvytdXl/8dDZEBTvEVaZIJbFAdP5BBMC+G290YNU39CqWKxSrlMPHcd ujOUOgJ3X4EoAUZix8pmjQBoogvjWl7A6uQqqVCbDE6lPvtylvQyetP/JlgMASvY1FlV moHaguTvN9tfUTyOoClH11JiImJqFkPinXPOvYpYxsgn+A13BNecDl/bG1krakPTENKY z7w8A/m3HcK3L4c1cPLiuXGJXoSx8VK0DDtxhiG/VvnC2E9AicxfsEAKHiVNAUzUVP7I gS7Q== 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; bh=yfTpQBao0SNcmboP51XoKE+QUe0XcDOdNj4LmaW6obQ=; b=PGSpuyNDnpGPrKjCLGAe0jhQxmPmVKCr0b+Gt5TwDZr3ztmNOlT4QFu19XQiBcffgH wyhb4YHdhmSEiCaZPy4k2kQWRZayiTDUOp8K1S+lKHwLGf7SKqc9xjfqL31jrhBhlzgQ jPiLPa2Dl6cyZAjlYmrmUJfhhA1kD9RUKXo7Q40XID4yoVNq7hiwTeiVBfX+IhEiBGLh YDGGteTvClyCORkNj7JA45k9UWzy2Z8GSwJaNLDXkj7h+k5L85PQMzgnmBjZERObC5ml jbKGLJc1MGaXpMbiIwEiNy2ujWdIhwhegXSet/7DnRb/fIGD6dwU179qiKwfy0W90TFP Z7nw== ARC-Authentication-Results: i=1; mx.google.com; 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 t26si11368011ejr.411.2021.02.08.06.51.30; Mon, 08 Feb 2021 06:51:55 -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; 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 S232439AbhBHOuB (ORCPT + 99 others); Mon, 8 Feb 2021 09:50:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232183AbhBHOkO (ORCPT ); Mon, 8 Feb 2021 09:40:14 -0500 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 258AFC061793 for ; Mon, 8 Feb 2021 06:38:59 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by albert.telenet-ops.be with bizsmtp id Seex2400L4C55Sk06eexHy; Mon, 08 Feb 2021 15:38:58 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l97gm-004e2A-Ph; Mon, 08 Feb 2021 15:38:56 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1l97gm-001kqj-Dd; Mon, 08 Feb 2021 15:38:56 +0100 From: Geert Uytterhoeven To: Heiko Stuebner Cc: Douglas Anderson , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally Date: Mon, 8 Feb 2021 15:38:55 +0100 Message-Id: <20210208143855.418374-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Merely enabling CONFIG_COMPILE_TEST should not enable additional code. To fix this, restrict the automatic enabling of ROCKCHIP_GRF to ARCH_ROCKCHIP, and ask the user in case of compile-testing. Fixes: 4c58063d4258f6be ("soc: rockchip: add driver handling grf setup") Signed-off-by: Geert Uytterhoeven --- drivers/soc/rockchip/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/rockchip/Kconfig b/drivers/soc/rockchip/Kconfig index 2c13bf4dd5dbee76..25eb2c1e31bb2a08 100644 --- a/drivers/soc/rockchip/Kconfig +++ b/drivers/soc/rockchip/Kconfig @@ -6,8 +6,8 @@ if ARCH_ROCKCHIP || COMPILE_TEST # config ROCKCHIP_GRF - bool - default y + bool "Rockchip General Register Files support" if COMPILE_TEST + default y if ARCH_ROCKCHIP help The General Register Files are a central component providing special additional settings registers for a lot of soc-components. -- 2.25.1