From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3HHS-0003g3-2U for barebox@lists.infradead.org; Mon, 11 Mar 2019 09:31:37 +0000 From: Sascha Hauer Subject: [PATCH 04/14] clk: Make CLK_IGNORE_UNUSED generic Date: Mon, 11 Mar 2019 10:31:13 +0100 Message-Id: <20190311093123.7956-5-s.hauer@pengutronix.de> In-Reply-To: <20190311093123.7956-1-s.hauer@pengutronix.de> References: <20190311093123.7956-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org To: Barebox List barebox will never disable unused clocks, so add CLK_IGNORE_UNUSED as a no-op flag. With this we can keep the changes to the imported kernel code smaller. Signed-off-by: Sascha Hauer --- drivers/clk/rockchip/clk.h | 1 - include/linux/clk.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h index aa52638f70..d6798a9055 100644 --- a/drivers/clk/rockchip/clk.h +++ b/drivers/clk/rockchip/clk.h @@ -27,7 +27,6 @@ #include /* To keep changes from kernel smaller */ -#define CLK_IGNORE_UNUSED 0 #define CLK_GATE_SET_TO_DISABLE CLK_GATE_INVERTED #define CLK_GET_RATE_NOCACHE 0 diff --git a/include/linux/clk.h b/include/linux/clk.h index 6081a1af87..5b0a93095d 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -285,6 +285,7 @@ static inline void clk_put(struct clk *clk) #include #define CLK_SET_RATE_PARENT (1 << 0) /* propagate rate change up one level */ +#define CLK_IGNORE_UNUSED (1 << 3) /* do not gate even if unused */ /* parents need enable during gate/ungate, set rate and re-parent */ #define CLK_OPS_PARENT_ENABLE (1 << 12) -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox