Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752837AbbD3S6S (ORCPT ); Thu, 30 Apr 2015 14:58:18 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:38087 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbbD3S6Q (ORCPT ); Thu, 30 Apr 2015 14:58:16 -0400 Message-ID: <55427B42.9060902@gmail.com> Date: Thu, 30 Apr 2015 20:58:10 +0200 From: Sebastian Hesselbarth User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Michael Welling CC: Mike Turquette , Stephen Boyd , Jean-Francois Moine , Russell King , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] clk: si5351: Reset PLL after rate change References: <1430415954-29517-1-git-send-email-sebastian.hesselbarth@gmail.com> <1430415954-29517-5-git-send-email-sebastian.hesselbarth@gmail.com> <20150430184932.GB22000@deathray> In-Reply-To: <20150430184932.GB22000@deathray> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1014 Lines: 28 On 30.04.2015 20:49, Michael Welling wrote: > On Thu, Apr 30, 2015 at 07:45:54PM +0200, Sebastian Hesselbarth wrote: >> When changing PLL rate significantly, PLLs have to be reset. Add a function >> to perform and check for successful PLL reset. >> >> Signed-off-by: Sebastian Hesselbarth >> --- [...] >> @@ -519,6 +545,9 @@ static int si5351_pll_set_rate(struct clk_hw *hw, unsigned long rate, >> SI5351_CLK_INTEGER_MODE, >> (hwdata->params.p2 == 0) ? SI5351_CLK_INTEGER_MODE : 0); >> >> + /* reset pll after rate change */ >> + si5351_pll_reset(hwdata); >> + > > What is the point of having a return code if it is not being used? Good point, I'll pass that on to the return value of .set_rate() callback for v2. Sebastian -- 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/