Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755498AbaFZMbp (ORCPT ); Thu, 26 Jun 2014 08:31:45 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:33062 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754917AbaFZMbm (ORCPT ); Thu, 26 Jun 2014 08:31:42 -0400 Message-ID: <53AC12A8.6040201@collabora.co.uk> Date: Thu, 26 Jun 2014 14:31:36 +0200 From: Javier Martinez Canillas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Yadwinder Singh Brar CC: Lee Jones , Samuel Ortiz , Mark Brown , Mike Turquette , Liam Girdwood , Alessandro Zummo , Kukjin Kim , Doug Anderson , Olof Johansson , Sjoerd Simons , Daniel Stone , Tomeu Vizoso , Krzysztof Kozlowski , "linux-arm-kernel@lists.infradead.org" , devicetree , linux-samsung-soc , linux-kernel Subject: Re: [PATCH v4 05/14] clk: Add generic driver for Maxim PMIC clocks References: <1403723019-6212-1-git-send-email-javier.martinez@collabora.co.uk> <1403723019-6212-6-git-send-email-javier.martinez@collabora.co.uk> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Yadwinder, Thanks a lot for your feedback. On 06/26/2014 01:51 PM, Yadwinder Singh Brar wrote: > Hi Javier, > > Sorry for jumping in late, but just one concern mentioned inline. > > [ .. ] > >> + >> +static unsigned long max_gen_recalc_rate(struct clk_hw *hw, >> + unsigned long parent_rate) >> +{ >> + return 32768; >> +} > > Isn't more safer(correct), if it check and return 0 when clk is > disabled(unprepared) ? > Makes sense to me. I'll add a if (__clk_is_enabled(hw->clk)) check in the next version. > Regards, > Yadwinder > Best regards, Javier -- 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/