[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <28464845.1OHBNvdFWi@avalon>
Date: Wed, 04 Feb 2015 15:50:40 +0200
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Cc: Geert Uytterhoeven <geert+renesas@...der.be>,
Mike Turquette <mturquette@...aro.org>,
Stephen Boyd <sboyd@...eaurora.org>,
Ulrich Hecht <ulrich.hecht+renesas@...il.com>,
Wolfram Sang <wsa@...g-engineering.com>,
linux-sh@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: shmobile: div6: Avoid division by zero in .round_rate()
Hi Sergei,
On Wednesday 04 February 2015 16:31:29 Sergei Shtylyov wrote:
> On 02/04/2015 03:27 PM, Geert Uytterhoeven wrote:
> > Anyone may call clk_round_rate() with a zero rate value, so we have to
> > protect against that.
>
> Shouldn't this be checked and fixed up in clk_round_rate() then?
Not all implementations need to divide by the requested rate, so I don't think
a check in the core is the best solution.
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
--
Regards,
Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists