Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933359AbbBCJml (ORCPT ); Tue, 3 Feb 2015 04:42:41 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:44060 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753507AbbBCJmh (ORCPT ); Tue, 3 Feb 2015 04:42:37 -0500 Message-ID: <1422956554.3070.1.camel@pengutronix.de> Subject: Re: [PATCH] clk: clk_set_parent() with current parent shouldn't fail From: Philipp Zabel To: Stephen Boyd Cc: Mike Turquette , linux-kernel@vger.kernel.org Date: Tue, 03 Feb 2015 10:42:34 +0100 In-Reply-To: <1422915085-29302-1-git-send-email-sboyd@codeaurora.org> References: <1422915085-29302-1-git-send-email-sboyd@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:96de:80ff:fec2:9969 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 21 Am Montag, den 02.02.2015, 14:11 -0800 schrieb Stephen Boyd: > If a driver calls clk_set_parent(clk, parent) and parent is the > current parent of clk we shouldn't fail in any case. > Unfortunately if clk is a read-only mux we return -ENOSYS > because we think we can't change the parent, except for in this > special case where we don't actually need to change the parent at > all. Return 0 in such a situation. > > Cc: Philipp Zabel > Signed-off-by: Stephen Boyd Acked-by: Philipp Zabel regards Philipp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/