[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <153090140728.143105.7720351459587498082@swboyd.mtv.corp.google.com>
Date: Fri, 06 Jul 2018 11:23:27 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Marek Vasut <marek.vasut@...il.com>,
Michael Turquette <mturquette@...libre.com>,
Steve Longerbeam <slongerbeam@...il.com>
Cc: linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
Steve Longerbeam <steve_longerbeam@...tor.com>
Subject: Re: [PATCH] clk: vc5: Avoid divide by zero when rounding or setting rates
Quoting Steve Longerbeam (2018-05-31 18:59:17)
> Add checks in the .round_rate and .set_rate ops for zero requested
> rate or zero parent rate. If either are zero in .round_rate, just
> return zero. If either are zero in .set_rate, return -EINVAL.
Are you seeing problems when the clk is unparented and we're trying to
recalculate the rate or change rates, and thus the parent frequency
looks like 0? Should this get a Fixes: tag so that it goes back to
stable kernels?
Powered by blists - more mailing lists