From mboxrd@z Thu Jan 1 00:00:00 1970 From: shawn.guo@linaro.org (Shawn Guo) Date: Tue, 2 Dec 2014 16:20:14 +0800 Subject: [PATCH 1/2] clk: Do not complain about correctly set read-only muxes when assigning clock parents from device tree In-Reply-To: <1417452162-20046-1-git-send-email-p.zabel@pengutronix.de> References: <1417452162-20046-1-git-send-email-p.zabel@pengutronix.de> Message-ID: <20141202082012.GC2411@dragon> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Dec 01, 2014 at 05:42:42PM +0100, Philipp Zabel wrote: > Assigning a clock parent to a mux with the CLK_MUX_READ_ONLY flag causes an > error "clk: failed to reparent read_only_mux to already_set_parent: -38" > even if the hardware is already set to the correct parent clock. > > This patch avoids the error message by checking whether the correct parent > is already set before calling clk_set_parent. This allows to use the > assigned-clock-parents device tree binding for clock muxes that are not > allowed to be changed anymore at the time of_clk_set_defaults is called. > > Signed-off-by: Philipp Zabel