[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6d83a5c3-6589-24bc-4ca5-4d1bbca47432@nexus-software.ie>
Date: Sun, 31 Dec 2017 13:40:07 +0000
From: Bryan O'Donoghue <pure.logic@...us-software.ie>
To: Mikko Perttunen <cyndis@...si.fi>, mturquette@...libre.com,
sboyd@...eaurora.org, linux-kernel@...r.kernel.org,
linux-clk@...r.kernel.org
Cc: linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mips@...ux-mips.org, linux-rpi-kernel@...ts.infradead.org,
patches@...nsource.cirrus.com,
uclinux-h8-devel@...ts.sourceforge.jp,
linux-amlogic@...ts.infradead.org, linux-arm-msm@...r.kernel.org,
linux-soc@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-rockchip@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-tegra@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
linux-mediatek@...ts.infradead.org,
freedreno@...ts.freedesktop.org, linux-media@...r.kernel.org,
linux-rtc@...r.kernel.org
Subject: Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned
long
On 30/12/17 16:36, Mikko Perttunen wrote:
> FWIW, we had this problem some years ago with the Tegra CPU clock - then
> it was determined that a simpler solution was to have the determine_rate
> callback support unsigned long rates - so clock drivers that need to
> return rates higher than 2^31 can instead implement the determine_rate
> callback. That is what's currently implemented.
>
> Mikko
Granted we could work around it but, having both zero and less than zero
indicate error means you can't support larger than LONG_MAX which is I
think worth fixing.
---
bod
Powered by blists - more mailing lists