From patchwork Tue Mar 19 10:01:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tretter X-Patchwork-Id: 10859231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A05BD1823 for ; Tue, 19 Mar 2019 10:01:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88466295FB for ; Tue, 19 Mar 2019 10:01:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C63F295FC; Tue, 19 Mar 2019 10:01:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 515B8295FD for ; Tue, 19 Mar 2019 10:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727479AbfCSKBw (ORCPT ); Tue, 19 Mar 2019 06:01:52 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:59947 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbfCSKBv (ORCPT ); Tue, 19 Mar 2019 06:01:51 -0400 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h6BZ7-0003IE-CI; Tue, 19 Mar 2019 11:01:49 +0100 Received: from mtr by dude02.lab.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1h6BZ6-00016a-KY; Tue, 19 Mar 2019 11:01:48 +0100 From: Michael Tretter To: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kernel@pengutronix.de, Michael Turquette , Stephen Boyd , Michal Simek , Jolly Shah , Michael Tretter Subject: [PATCH v2 0/4] clk: zynqmp: fix CLK_FRAC and various cleanups Date: Tue, 19 Mar 2019 11:01:43 +0100 Message-Id: <20190319100147.4178-1-m.tretter@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: mtr@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-clk@vger.kernel.org Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This is v2 of the patchset to cleanup the ZynqMP clock driver. I introduced the new is_frac field in zynqmp_clk_divider. The driver uses this field to flag fractional dividers instead of misusing the clk_hw::core::flags field. Furthermore, the driver uses structs for the query responses from the firmware instead of passing arrays with implicit size. Michael v1 -> v2: - remove export of zynqmp_clk_register_divider - move CLK_FLAG to property in zynqmp_clk_divider - merge and rewrite patches 4 and 5 to use structs for responses Michael Tretter (4): clk: zynqmp: fix kerneldoc of __zynqmp_clock_get_parents clk: zynqmp: do not export zynqmp_clk_register_* functions clk: zynqmp: fix check for fractional clock clk: zynqmp: use structs for clk query responses drivers/clk/zynqmp/clk-mux-zynqmp.c | 1 - drivers/clk/zynqmp/clk-zynqmp.h | 6 -- drivers/clk/zynqmp/clkc.c | 148 ++++++++++++++++------------ drivers/clk/zynqmp/divider.c | 10 +- 4 files changed, 92 insertions(+), 73 deletions(-)