From patchwork Wed Oct 24 01:31:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10653999 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 7F53713A9 for ; Wed, 24 Oct 2018 01:32:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 705652A363 for ; Wed, 24 Oct 2018 01:32:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62BC42A378; Wed, 24 Oct 2018 01:32:51 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 3C4512A363 for ; Wed, 24 Oct 2018 01:32:50 +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=D1iG4/QbWcd85/r9JT0nUFLcUy22zZMVa3BLzpk3etg=; b=DBxpyKDrq9X6sl v+UvrPCHvh/WydpEMZ7JySqBTvN/OuxYMeTJBr4m7iFnRtXMWAxI+n4kd6od3GuVVG3rc2b4dEoAk o9H/eksCHQRZwG7k0s5+UA7+Yg43lIyDKOKYSALIgGBNdHgqBHSOhTmvrMq9TX5t0dY+0YO/xNtLy IsiZxbFGWyTdwDLHTU0c5F17eHWr1jfDPLzE/tkYmf6YFyYecvMBTSvSGfgMC1St+xHpcKma75943 RfsXA9FMdgR+TgDYaxmT7zoVWBbZudQwWgJ86qdlhlAqomwrIUYwcnS5kXjq9P90M+UhozLCcC4ZT odA7mvtFudpIG8mJDwOw==; 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 1gF82K-0002BC-6G; Wed, 24 Oct 2018 01:32:40 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF81Y-0001qS-2V for linux-rockchip@lists.infradead.org; Wed, 24 Oct 2018 01:31:53 +0000 Received: by mail-pg1-x543.google.com with SMTP id w3-v6so1500985pgs.11 for ; Tue, 23 Oct 2018 18:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HoUgDeYGHgBozPF8BvR8CllNS3AMMSk3lQsJUo6v4lQ=; b=GWXU0gFJkxJKX37VY0PH8faOcJgPAk2h2QOJhmZvHjkvV33ad3FvB/6nc45ofMG8Mp SE49qCNaKFsYCM/r7GbTA5qB6CfBoDup0AImuNY2v1E82Xpq7N4+6p/ofA4vDlfdn/Vs aMySpjcm9euNg5ToOvba7Td9QO9M2lb+v+wXE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HoUgDeYGHgBozPF8BvR8CllNS3AMMSk3lQsJUo6v4lQ=; b=b5rgc5ICBuWG1dHj6Qw2vnOKEvmMvac3r/i44CeVwHBtVt1rSwbc5sGh1I9VtqD5FR PGc78tQd4v4amBQ7JkngXiHxw52Kp5kf70+UZhPhRl89XWc+L+APjEYABfSYgDb5zhYq OOqxJCt0KWcvI58Uu3MlRh4eAgsnNOXsESYGIP4dyDgFtzrEhrMr/P0sGHLnLM5NaMcA TlMU6+R41vov2lH3scJMhv8UoKRP6QvJuRvs1IAOBQ4kyF0UvM/ZvnKtEEtMQUmSE6xl kJVTTEyrdW/4BWEfkD8p78AdFdRyzLLJ2mzQU5fgJqpOAZM6/LKjiDr5kfNxJBG5r4YQ DrEA== X-Gm-Message-State: AGRZ1gKLf3HSyzddjeuBez0Q25hS+ACSDZeFeFLrPWhiKCMgGz2YUeLj xbtXRgvwEO1lU9Lmc9OEx035Kw== X-Google-Smtp-Source: AJdET5ezXFxvRDBDYDo41GXToJDTkUsqNwxqKxsspVnyYcmp5mbR44Btd+lDInTNkrKhw21HO5BGpg== X-Received: by 2002:a63:64c:: with SMTP id 73mr596598pgg.373.1540344700541; Tue, 23 Oct 2018 18:31:40 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5e2b:39df:72ed:4968]) by smtp.gmail.com with ESMTPSA id p4-v6sm3882341pfg.188.2018.10.23.18.31.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 18:31:39 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Coordinated Clks Date: Tue, 23 Oct 2018 18:31:26 -0700 Message-Id: <20181024013132.115907-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.19.1.568.g152ad8e336-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_183152_176848_D53CA14C X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aisheng.dong@nxp.com, Derek Basehore , heiko@sntech.de, linux-doc@vger.kernel.org, sboyd@kernel.org, mturquette@baylibre.com, corbet@lwn.net, linux-rockchip@lists.infradead.org, mchehab+samsung@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Here's the first set of patches that I'm working on for the Common Clk Framework. Part of this patch series adds a new clk op, pre_rate_req. This is designed to replace the clk notifier approach that many clk drivers use right now to setup alt parents or temporary dividers. This should allow for the removal of the CLK_RECALC_NEW_RATES flag and the implementation of a better locking scheme for the prepare lock. Derek Basehore (5): clk: fix clk_calc_subtree compute duplications clk: change rates via list iteration clk: add pre clk changes support docs: driver-api: add pre_rate_req to clk documentation clk: rockchip: use pre_rate_req for cpuclk Stephen Boyd (1): clk: Remove recursion in clk_core_{prepare,enable}() Documentation/driver-api/clk.rst | 7 +- drivers/clk/clk.c | 484 +++++++++++++++++++++++-------- drivers/clk/rockchip/clk-cpu.c | 256 ++++++++-------- include/linux/clk-provider.h | 10 + 4 files changed, 509 insertions(+), 248 deletions(-)