From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 221E5C43381 for ; Sat, 2 Mar 2019 04:32:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1B3820857 for ; Sat, 2 Mar 2019 04:32:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SHz+kYsS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sholland.org header.i=@sholland.org header.b="UxmpdSvH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="JoCrbG4Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1B3820857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=KL9EKNyEjlR3PzTwfzecfKc6K3efqHPY+s0FL4qHmoE=; b=SHz+kYsSxKw8Z/ snhNibCKsJ2BkPWoYaR4gY5uu9W+NFASnvdC03AJefFSuO6jNa6Msgv4v6PrjQl2c7vAyTttoIv5G Ab7H2bessM8jZKHBPSI98KlstEEeDH8VkfT+sjC0iNPKmrLS5g1/bpGGYwHfoY2BVqr62/Zoye7rG 6ox4eyPu7ZkBhWWyXEOiEbHW80QEtFXxz9W7++4Aq6KoFvUcDXg+1vwxQT0f7tV9+lefBD44w2F4v xvFJZqGFf1OfKfxn7N/qtkyxRVOz5ZopuO0Cq/F1DihR5ezlVwT7sONvwPkYPu0h5Wu2KgIj4orz0 wgJAfOZyMfod9O9w+M4Q==; 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 1gzwJc-0002nt-2y; Sat, 02 Mar 2019 04:32:00 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzwHk-0007nT-KI for linux-arm-kernel@lists.infradead.org; Sat, 02 Mar 2019 04:30:08 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C4F652212D; Fri, 1 Mar 2019 23:29:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 01 Mar 2019 23:29:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=kwfuUztxUlhsG 6MYLzQmOvXZRpx67dgCMPLH+uawJkc=; b=UxmpdSvHwPtKCR/w4U6iD3T5zck2m sBdUpmhwqiAiXzGYyz5IkGC9LyrzkGgExdlVrMN7YxZ5s9uEKihiTYRqJYbJ9Lnl QYE3tI436MulETdVbBP4ytsSW66lNhf7bWV+CS+vVah9BblXTXijQcnTVI5+eNgA 559j9OtTLQtEBC246eiOCKptnCq3MXkbzaqNDmS5RexRj6qcy160R4u0fFfJ4iMD xSkaom8PQn+UpoJYdJXZNVA0/aR46VTqmioIKaM5+xV84BL7/AH7nCuKWIwS+XJ/ fv70ppMTcVeq/mdDaidSa07jcwXGmNvs7dLVrX5PJsuClZKiW08ma26CA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=kwfuUztxUlhsG6MYLzQmOvXZRpx67dgCMPLH+uawJkc=; b=JoCrbG4Y VgCr1TJ8HYv/ne/9yBybpApIf7NbtlDUHafGT3uMJAdjlDZQepcMHLWGKyMa+dqJ ZaRDQK2SQHkDaJ8K+dKEqKxRulj64gmvWbwmDtjurVeO/pOWy34iHRo7al6v+Y30 uXSfvhQAXQCdcsQvPqlwz8wAbHIpScSGeorp/QBlSTOIaVrnn+cVmaeJbMiBf61p X5Bzobh22s5NJqQW94aL4LF1pHeYwSZkz/2+MLsV+pkzvf5dL9A9wZP/vp+HgaBu CQN8tV5dPUVzIkkwTF1/9CzJEvbZ7hKzAG3FY9e/RleAkKSzEUx2CpKYtk6ozUi2 pzGYbH9Mf02wOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrvdeigdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecukfhppe ejtddrudefhedrudegkedrudehudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhu vghlsehshhholhhlrghnugdrohhrghenucevlhhushhtvghrufhiiigvpeek X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id D93D810310; Fri, 1 Mar 2019 23:29:57 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jassi Brar , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland Subject: [PATCH v3 10/15] [NOT FOR MERGE] clk: sunxi-ng: sun8i: Avoid turning off unused PRCM gates Date: Fri, 1 Mar 2019 22:29:46 -0600 Message-Id: <20190302042951.53671-11-samuel@sholland.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190302042951.53671-1-samuel@sholland.org> References: <20190302042951.53671-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190301_203005_120686_4F4C6FFE X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Samuel Holland , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hardware attached to AHB0/APB0 and controlled in the PRCM is designed to be used by firmware running on the ARISC core. However, some devices in this block (specifically the I2C, RSB, PIO, and CIR-RX) have native Linux drivers and are already in the device tree. In particular, the RSB and I2C buses may have sound chips and display bridges hanging off of them that cannot easily be driven from firmware. To facilitate sharing this hardware block between Linux and system firmware, avoid turning off PRCM clock gates that are unreferenced in the device tree. We assume that firmware has already optimally configured these clocks before booting Linux. Signed-off-by: Samuel Holland --- drivers/clk/sunxi-ng/ccu-sun8i-r.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r.c b/drivers/clk/sunxi-ng/ccu-sun8i-r.c index 90b3530e2c18..603de1e853e9 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-r.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-r.c @@ -92,19 +92,19 @@ static struct ccu_div apb0_clk = { static SUNXI_CCU_M(a83t_apb0_clk, "apb0", "ahb0", 0x0c, 0, 2, 0); static SUNXI_CCU_GATE(apb0_pio_clk, "apb0-pio", "apb0", - 0x28, BIT(0), 0); + 0x28, BIT(0), CLK_IGNORE_UNUSED); static SUNXI_CCU_GATE(apb0_ir_clk, "apb0-ir", "apb0", - 0x28, BIT(1), 0); + 0x28, BIT(1), CLK_IGNORE_UNUSED); static SUNXI_CCU_GATE(apb0_timer_clk, "apb0-timer", "apb0", - 0x28, BIT(2), 0); + 0x28, BIT(2), CLK_IGNORE_UNUSED); static SUNXI_CCU_GATE(apb0_rsb_clk, "apb0-rsb", "apb0", - 0x28, BIT(3), 0); + 0x28, BIT(3), CLK_IGNORE_UNUSED); static SUNXI_CCU_GATE(apb0_uart_clk, "apb0-uart", "apb0", - 0x28, BIT(4), 0); + 0x28, BIT(4), CLK_IGNORE_UNUSED); static SUNXI_CCU_GATE(apb0_i2c_clk, "apb0-i2c", "apb0", - 0x28, BIT(6), 0); + 0x28, BIT(6), CLK_IGNORE_UNUSED); static SUNXI_CCU_GATE(apb0_twd_clk, "apb0-twd", "apb0", - 0x28, BIT(7), 0); + 0x28, BIT(7), CLK_IGNORE_UNUSED); static const char * const r_mod0_default_parents[] = { "osc32k", "osc24M" }; static SUNXI_CCU_MP_WITH_MUX_GATE(ir_clk, "ir", @@ -113,7 +113,7 @@ static SUNXI_CCU_MP_WITH_MUX_GATE(ir_clk, "ir", 16, 2, /* P */ 24, 2, /* mux */ BIT(31), /* gate */ - 0); + CLK_IGNORE_UNUSED); static const char *const a83t_r_mod0_parents[] = { "osc16M", "osc24M" }; static const struct ccu_mux_fixed_prediv a83t_ir_predivs[] = { @@ -138,7 +138,7 @@ static struct ccu_mp a83t_ir_clk = { .hw.init = CLK_HW_INIT_PARENTS("ir", a83t_r_mod0_parents, &ccu_mp_ops, - 0), + CLK_IGNORE_UNUSED), }, }; -- 2.19.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel