Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751066AbdLaNkR (ORCPT ); Sun, 31 Dec 2017 08:40:17 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34223 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbdLaNkL (ORCPT ); Sun, 31 Dec 2017 08:40:11 -0500 X-Google-Smtp-Source: ACJfBovu2i2vZ6D5GC6XkK7LYH+ifTLlk01NXuIs6iIW+XzCCxtiY7oo/ukI7G/HcysWPq4No/Vn3w== Subject: Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long To: Mikko Perttunen , mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, linux-rpi-kernel@lists.infradead.org, patches@opensource.cirrus.com, uclinux-h8-devel@lists.sourceforge.jp, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, freedreno@lists.freedesktop.org, linux-media@vger.kernel.org, linux-rtc@vger.kernel.org References: <1514596392-22270-1-git-send-email-pure.logic@nexus-software.ie> <1514596392-22270-2-git-send-email-pure.logic@nexus-software.ie> <9f4bef5a-8a71-6f30-5cfb-5e8fe133e3d3@kapsi.fi> From: "Bryan O'Donoghue" Message-ID: <6d83a5c3-6589-24bc-4ca5-4d1bbca47432@nexus-software.ie> Date: Sun, 31 Dec 2017 13:40:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <9f4bef5a-8a71-6f30-5cfb-5e8fe133e3d3@kapsi.fi> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 577 Lines: 15 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