From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545AbeDTJ4N (ORCPT ); Fri, 20 Apr 2018 05:56:13 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:38558 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754287AbeDTJ4K (ORCPT ); Fri, 20 Apr 2018 05:56:10 -0400 X-Google-Smtp-Source: AIpwx4++6xrO1lWVJQUZ5YP84BDpH6pnrB5thBiB+pokbfjhbfdaVZSr2jr46erlyH6tTz0k0orFLg== From: Jerome Brunet To: Neil Armstrong , Kevin Hilman Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] clk: meson: mpll: add round closest support Date: Fri, 20 Apr 2018 11:56:01 +0200 Message-Id: <20180420095603.29964-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ATM, the mpll driver can only round the requested rate down, even if rounding up would have provided a better approximation of the requested rate. This patchset adds a flag to enable rounding to the closest rate possible, even if it means rounding up. The flag is then enabled on the axg platform to improve the rates provided to the audio subsystem. Jerome Brunet (2): clk: meson: mpll: add round closest support clk: meson: axg: let mpll clocks round closest drivers/clk/meson/axg.c | 4 ++++ drivers/clk/meson/clk-mpll.c | 25 ++++++++++++++++++++----- drivers/clk/meson/clkc.h | 3 +++ 3 files changed, 27 insertions(+), 5 deletions(-) -- 2.14.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbrunet@baylibre.com (Jerome Brunet) Date: Fri, 20 Apr 2018 11:56:01 +0200 Subject: [PATCH 0/2] clk: meson: mpll: add round closest support Message-ID: <20180420095603.29964-1-jbrunet@baylibre.com> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org ATM, the mpll driver can only round the requested rate down, even if rounding up would have provided a better approximation of the requested rate. This patchset adds a flag to enable rounding to the closest rate possible, even if it means rounding up. The flag is then enabled on the axg platform to improve the rates provided to the audio subsystem. Jerome Brunet (2): clk: meson: mpll: add round closest support clk: meson: axg: let mpll clocks round closest drivers/clk/meson/axg.c | 4 ++++ drivers/clk/meson/clk-mpll.c | 25 ++++++++++++++++++++----- drivers/clk/meson/clkc.h | 3 +++ 3 files changed, 27 insertions(+), 5 deletions(-) -- 2.14.3