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: 10859245 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 C598C6C2 for ; Tue, 19 Mar 2019 10:02:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4868295C9 for ; Tue, 19 Mar 2019 10:02:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9866A295F5; Tue, 19 Mar 2019 10:02:34 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F5C9295FC for ; Tue, 19 Mar 2019 10:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vDCFe38fSCulB+3hrlPp0uzLZuhzutnftsRrCJMifHQ=; b=NcuuqF+kQ7rQhv Y6/u6IEYXnqzfhtNlKkVMHlhYEI1purzEIX621sgnarL71V65FhrYJ+WwY1OFfMJLDSXxfcGEUHO+ hpbC3ewOwQihpJeHgu9RI66AhPi6QU9Bd/RsIjs8Lx3+Hn6mAvqwbCUWmjahhRR7mO+4brG32uX4i 3t6tYh4Pj/obYrB3LOxJWea9zKXirt/Na8u4rnOZD4Mfh0o4tUy93sguyJ7PvuW6HOXZpCjK3Sej3 Q1Ihu6DadQilTkHSCrTRxUzUeswoYnEQpIBPEDBFKKJFZlyVHxQjgy3HxYLDLhcB4uL89XxfSeG0z 34q6HimbKpBbcYepkDPw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6BZn-0003Lp-Ff; Tue, 19 Mar 2019 10:02:31 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6BZC-0002Wn-FX for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 10:01:57 +0000 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 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-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_030154_831808_3E0068B6 X-CRM114-Status: GOOD ( 10.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Boyd , Michael Turquette , Michal Simek , Michael Tretter , kernel@pengutronix.de, Jolly Shah Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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(-)