Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753827AbbBYUqn (ORCPT ); Wed, 25 Feb 2015 15:46:43 -0500 Received: from mail-oi0-f50.google.com ([209.85.218.50]:65063 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbbBYUql convert rfc822-to-8bit (ORCPT ); Wed, 25 Feb 2015 15:46:41 -0500 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Philipp Zabel , "Stephen Boyd" From: Mike Turquette In-Reply-To: <1422956554.3070.1.camel@pengutronix.de> Cc: linux-kernel@vger.kernel.org References: <1422915085-29302-1-git-send-email-sboyd@codeaurora.org> <1422956554.3070.1.camel@pengutronix.de> Message-ID: <20150225204625.421.63627@quantum> User-Agent: alot/0.3.5 Subject: Re: [PATCH] clk: clk_set_parent() with current parent shouldn't fail Date: Wed, 25 Feb 2015 12:46:25 -0800 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 28 Quoting Philipp Zabel (2015-02-03 01:42:34) > 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 Applied to clk-next. Regards, Mike > > 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/