From patchwork Mon May 13 21:30:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 10941797 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F73E924 for ; Mon, 13 May 2019 21:31:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E5FB2844C for ; Mon, 13 May 2019 21:31:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8298A2847E; Mon, 13 May 2019 21:31:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 31E5B2844C for ; Mon, 13 May 2019 21:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ENKGggEnX4SQXPK+pjnvtfxpy2fPcCUoXitVgIXb1bI=; b=VE37k+8nUIR+Mp ZfCbcuek5QHc+u51VVS2q/fhNA2bX2kRqfQ79BhPfChRragAk6jFUUoZ15G44QBlLoSwSXHrNqhgX NVSupUSurk1wPVPFdEASPNipKXNeFXwrUCWWZTSAwFcOme3f3NM629ubv65YVduEW0guweQqKT5Fn KEwAcVUrQTyeG2erxWQwpp4vSlxT5IJlOVrZnnxQaBqaQLSAjPcBivwAf+a5oAQ7Npwb8wCIWniDR rQ199W7WcYDGh4deEyx7tDYuTEinA06WtFhLGZpPZ4mE9beYlcJ45c/0iEHJEK1FuxhEJngbC66tz PVhuZN1hyxpWbrSWAdvg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQIXK-0000P5-Jb; Mon, 13 May 2019 21:31:06 +0000 Received: from mail-it1-x141.google.com ([2607:f8b0:4864:20::141]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQIXG-0000ON-IW for linux-riscv@lists.infradead.org; Mon, 13 May 2019 21:31:04 +0000 Received: by mail-it1-x141.google.com with SMTP id l7so1480671ite.2 for ; Mon, 13 May 2019 14:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nG/cg6n0i3VSt9q4OWPy6u/pN1SDfSXSymhq0fKGvbU=; b=RqsxKwF0KdojF4QODMrB/rU9fsaiNOfClSr+OIrD9umBxWYtvs7bbsk4AGpRC9NijC C9lQXaYeGa6z3m+wsbaPl5o5Gp9+JCzAVFkrDufA9vHZBERuo13JsVUaq3ikN8YL3F0w M177eKIdp2P06S3dsMJfMYLd2JyotZSvmdCwEdzqGkSOb5tZvOw9hzy4kW0+BejB1bVu JncY3m5gfPZ/LrsrpY0PIrH0vvVid6Oo0ssEVPtlobht1O+TpXR1ddrTwrkUQtTJgLLg ZnOsfdGJY0QB2LtjLyjGjAvUIPhHt3xKigszby+2nhnlg9IOEjKn1I47ngMnmbieGJbd X6Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nG/cg6n0i3VSt9q4OWPy6u/pN1SDfSXSymhq0fKGvbU=; b=fGIkIB0x5XreDaH1RUtLetNWTOfU2iTBqaA/Y6bjRPB42in6ogUvxJtrbPvdhj6s4l Mge6I9YeZvqmQa2Tmjz/CM/Uz8aHGHi3wK6uimi43zbDL+JYi3b9//51EpRIrAUj2LuY 00XyOZ3mG/FttM22vtB0L7s2Zy8JlP7lAraCk9Dvm8N7ap0GoonRcfnMtymNPktgNq2B mpQHyYnSYCIrs14JORv4ivJ/9HNn/XlohcsVd86cAdzErmWe7+vjKXASWziMFqy1be44 JQKClKrwl/+0YWK3m9myID3iOGKhxJ2Ak2lF9tUmBfeYJn8nhTUOsgfKUlyyq2H8gZfw 0gWA== X-Gm-Message-State: APjAAAUF16K3LW98CyswjlhDR1VwXfsFaefH3MTm0joSPnNwD7BKqsKA 2jN4c4mj/YCAvw9/6Taq5xZqOA== X-Google-Smtp-Source: APXvYqwk7m0Q/MrpP8+eiR066EdhYUGK5GRiDbH6KYzeur6dRFebxEN9XETfcxzRVeqe5EtcWgllUg== X-Received: by 2002:a24:b713:: with SMTP id h19mr959141itf.73.1557783060343; Mon, 13 May 2019 14:31:00 -0700 (PDT) Received: from viisi.lan (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id 26sm1332438iog.59.2019.05.13.14.30.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 14:30:59 -0700 (PDT) From: Paul Walmsley To: sboyd@kernel.org, mturquette@baylibre.com, pavel@ucw.cz Subject: [PATCH v2] clk: sifive: restrict Kconfig scope for the FU540 PRCI driver Date: Mon, 13 May 2019 14:30:04 -0700 Message-Id: <20190513213001.23956-1-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190513_143102_757533_FEAB3855 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-riscv@lists.infradead.org, Paul Walmsley , Paul Walmsley , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Restrict Kconfig scope for SiFive clock and reset IP block drivers such that they won't appear on most configurations that are unlikely to support them. This is based on a suggestion from Pavel Machek . Ideally this should be dependent on CONFIG_ARCH_SIFIVE, but since that Kconfig directive does not yet exist, add dependencies on RISCV or COMPILE_TEST for now. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Reported-by: Pavel Machek Cc: Michael Turquette Cc: Stephen Boyd Acked-by: Pavel Machek --- This second version incorporates non-functional changes requested by Stephen Boyd . drivers/clk/sifive/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sifive/Kconfig b/drivers/clk/sifive/Kconfig index 8db4a3eb4782..f3b4eb9cb0f5 100644 --- a/drivers/clk/sifive/Kconfig +++ b/drivers/clk/sifive/Kconfig @@ -2,6 +2,7 @@ menuconfig CLK_SIFIVE bool "SiFive SoC driver support" + depends on RISCV || COMPILE_TEST help SoC drivers for SiFive Linux-capable SoCs.