From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752359AbeBZJn1 (ORCPT ); Mon, 26 Feb 2018 04:43:27 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:55075 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751799AbeBZJnZ (ORCPT ); Mon, 26 Feb 2018 04:43:25 -0500 X-Google-Smtp-Source: AH8x224xik+R2y+TUleN4PvFd5CXmpPx2zMOZHpXrSGunhrDXCXqlGnK+QaNxWzjaQnvblU0Y0UEyw== MIME-Version: 1.0 In-Reply-To: <20180226093800.uwbo54wrdcwmsyzh@flea.lan> References: <20180224214545.3740-1-jernej.skrabec@siol.net> <20180224214545.3740-2-jernej.skrabec@siol.net> <20180226093800.uwbo54wrdcwmsyzh@flea.lan> From: Chen-Yu Tsai Date: Mon, 26 Feb 2018 17:43:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/15] clk: sunxi-ng: Add check for minimal rate to NM PLLs To: Maxime Ripard Cc: Jernej Skrabec , David Airlie , Rob Herring , Mark Rutland , Mike Turquette , Stephen Boyd , dri-devel , devicetree , linux-arm-kernel , linux-kernel , linux-clk , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 5:38 PM, Maxime Ripard wrote: > Hi, > > On Sat, Feb 24, 2018 at 10:45:31PM +0100, Jernej Skrabec wrote: >> Some NM PLLs doesn't work well when their output clock rate is set below >> certain rate. >> >> Add support for that constrain. > > In such a case, you should round the rate to the minimum the clock can > operate at, and not return an error. That's true for round_rate. But what's the expected behavior of set_rate? AFAIK we presume all users call round_rate before set_rate, but that doesn't seem to be true all the time. ChenYu