From patchwork Sat Aug 31 11:12:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Austen X-Patchwork-Id: 13786051 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9DE63CA101C for ; Sat, 31 Aug 2024 11:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:Cc:From:To:Date: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=Dols8a+z76GM/RLMd5BUNqT9/WON4qjk7rpO6N/5q0M=; b=EdHvO0yWA6/Lj/dxeQGjRpC3mw Q7zA8Ycl9bVijV8/u2ZMIvUY7rvgb1cYg/o8vJYdT2RIgIJPLTu+cDJ4P49S3FByrYrBzVUmazsue 5v4Z8VyoMAEOonmQJ4go7aiQGXvrCxOr9+xsIGMojPb6souzL9/hAoStwdGbunhf7XtNtpPaA+4Aa 49IWlC5EO0Ai+jzd30qBL4JXML7aDrBcnK6mrGyNQ8CukApOk1LHgP4fGD5NdXn0acLa72KW4FvtF ZkQWBMuubLktghAs/6Mx/4eVf2+BKIAxXUSLutBgZuxSV/PYbwzkyjupRlcy44fnP+1sDpT6bfV2k ir99mnKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skM4v-00000009CyA-1sXB; Sat, 31 Aug 2024 11:15:37 +0000 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skM2D-00000009C8O-1nOK for linux-arm-kernel@lists.infradead.org; Sat, 31 Aug 2024 11:12:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725102765; x=1725361965; bh=Dols8a+z76GM/RLMd5BUNqT9/WON4qjk7rpO6N/5q0M=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=e7rdhy7yK1V4GQuAs0e9ZrPvKzJ82M1QXMdRs2aFPeGztEOsyxJxtUi/tabHKpOlV 4/F9Z3mrM5Cr+Vw6eJDQzjK1VvUY13xrbUMo1YBV6rFefYzxZt1K1/jlhqnmQA9fcv XCYiirYxY0mdEMX2CNwmosrz419G6+tsoiV9Z5gkDegHcJQieXB3DsuZeKnLWCUT6O DNhoNSu8nCLN7enwunNyZjmmoM0IF89p6c+PqQEwzfGo0L/aawoUvWmLQqWAK9w2TC neOFmQIEkQ4jtRSY1PvgwIq7G2wjEgRGR9DkM4vsrSyzAc4S1dI2IrFK01sQxN5r7X DfFzme22S4E9A== Date: Sat, 31 Aug 2024 11:12:42 +0000 To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek From: Harry Austen Cc: Shubhrajyoti Datta , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Harry Austen Subject: [PATCH 0/6] clk: clocking-wizard: modernize probe Message-ID: <20240831111056.3864-1-hpausten@protonmail.com> Feedback-ID: 53116287:user:proton X-Pm-Message-ID: 6bb30e44e4ae9f6e2fe7232420e2983d9a9c7846 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240831_041249_646271_99891FBC X-CRM114-Status: UNSURE ( 7.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Improve utilised clk/notifier APIs, making use of device managed versions of functions and make dynamic reconfiguration support optional (because it is in hardware). This is currently untested on hardware, so any help testing this would be much appreciated! This patchset is based on a previous one [1] ([PATCH v3 0/9] clk: clocking-wizard: add user clock monitor support), whereby I was attempting to add support for the user clock monitor functionality. Those three patches (DT binding, clk driver and UIO driver) have now been removed, with the intention of getting these simpler tidyup changes merged first, while reworking the design of the user clock monitor support. These remaining six patches are unchanged from the aforementioned patchset. [1] https://lore.kernel.org/20240826123602.1872-1-hpausten@protonmail.com Harry Austen (6): clk: clocking-wizard: simplify probe/remove with devres helpers clk: clocking-wizard: use newer clk_hw API clk: clocking-wizard: use devres versions of clk_hw API clk: clocking-wizard: move clock registration to separate function dt-bindings: clock: xilinx: describe whether dynamic reconfig is enabled clk: clocking-wizard: move dynamic reconfig setup behind flag .../bindings/clock/xlnx,clocking-wizard.yaml | 7 + drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 281 ++++++++---------- 2 files changed, 128 insertions(+), 160 deletions(-)