Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp238202pxv; Wed, 14 Jul 2021 02:55:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2jx+OUZum/F3qV1gaAaAGNXG9MTn0izY1rQbzR+BP6SBpIYSriCSd8ZpYt1Le9QcuOwqJ X-Received: by 2002:a02:a1c8:: with SMTP id o8mr8021523jah.50.1626256509399; Wed, 14 Jul 2021 02:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626256509; cv=none; d=google.com; s=arc-20160816; b=Os1EBfjNqlJo6HU7Udx7cue8UieSmNaoKrM1CyXSPAof988OuWtafXzbHO/BNAAEmM iLgnhvlZFVm5Udm0MkOjYIW5GBJEUvdSa/Q3BE5I1uoHjlX7RNSt5neuWstHEDdbGpfJ wzybi01mQoOSJjh9GrEhkPzQrzcfx4/5hQYCH2XeE3CLKFgZXDrVrG/4berRWMXMihcN Oso/f69OPw93ybOk0DlH/yftl9xIwVGckn0N9+3lRp5Thi6JbO6KBOxY+Rb2+1O9CZuL lxFb+HLZVdhiaAA/PE0RG9d19xnwwJuWHhxXd2eYhbgbZP1KUEp7bbH7EVeQa1WaGDoC Dx6g== 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=s7uYApT1xhFaeyWOXLpq7Hx+8loeaxiNjr2Za99cMRMWfVcL1L7EvrzF+x7XVO9PM6 V92PMwGnPN+7RHrFw1vjHrdptb4uPXd/1JCEEX3W1Y6rMWD7/CyrTB2R9QSjKPDJX4Nc DPRIUXe3sAUoXRR8sWQBCh9pBVm9lPLBGi9DhuKayJNjv93dBf1J04TVI45P4fGLjzMm AYLpfjiij1G/ST9fc28PNXXdunBb4chJCEDY4fnVont++EKsaRo1WZik/UA/cwjSDnOU CK/pfr8yylP+N8q3/PxH4+CL3zwGLSa/03vyQiBh1Xp4zU/xbsv2JlTNu3tDal1hSi9r DhbA== 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 p14si2249384ils.62.2021.07.14.02.54.56; Wed, 14 Jul 2021 02:55:09 -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; 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 S238923AbhGNJ4R (ORCPT + 99 others); Wed, 14 Jul 2021 05:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238271AbhGNJ4R (ORCPT ); Wed, 14 Jul 2021 05:56:17 -0400 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 47A0EC06175F for ; Wed, 14 Jul 2021 02:53:26 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed10:39cc:190a:2775:cfe7]) by albert.telenet-ops.be with bizsmtp id UxtQ2500o1ccfby06xtQaU; Wed, 14 Jul 2021 11:53:24 +0200 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 1m3bZt-0015lZ-2l; Wed, 14 Jul 2021 11:53:17 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1m3bZs-00A3jm-Hj; Wed, 14 Jul 2021 11:53:16 +0200 From: Geert Uytterhoeven To: Heiko Stuebner , Douglas Anderson Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH resend] soc: rockchip: ROCKCHIP_GRF should not default to y, unconditionally Date: Wed, 14 Jul 2021 11:53:15 +0200 Message-Id: <596ed544412bb45581e9fe42cc519ec5a29ce13b.1626256348.git.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