Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966070AbbBDWCB (ORCPT ); Wed, 4 Feb 2015 17:02:01 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:60337 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933260AbbBDWB6 convert rfc822-to-8bit (ORCPT ); Wed, 4 Feb 2015 17:01:58 -0500 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Sergei Shtylyov , "Wolfram Sang" , "Geert Uytterhoeven" From: Mike Turquette In-Reply-To: <54D25AAA.8070904@cogentembedded.com> Cc: "Stephen Boyd" , "Laurent Pinchart" , "Ulrich Hecht" , "Wolfram Sang" , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: <1423052841-15194-1-git-send-email-geert+renesas@glider.be> <20150204173233.GA30930@katana> <54D25AAA.8070904@cogentembedded.com> Message-ID: <20150204220152.421.38508@quantum> User-Agent: alot/0.3.5 Subject: Re: [PATCH] clk: shmobile: div6: Avoid division by zero in .round_rate() Date: Wed, 04 Feb 2015 14:01:52 -0800 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 31 Quoting Sergei Shtylyov (2015-02-04 09:45:14) > Hello. > > On 02/04/2015 08:32 PM, Wolfram Sang wrote: > > >> Anyone may call clk_round_rate() with a zero rate value, so we have to > >> protect against that. > > >> Signed-off-by: Geert Uytterhoeven > > > Acked-by: Wolfram Sang > > > I agree that this should not be fixed in the core because the fixup is > > really driver dependant. > > Dunno, zero frequency seems generally insane to me. It is useful to find the lowest frequency a clock can support. Basically it is a search for the floor frequency. Regards, Mike > > WBR, Sergei > -- 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/