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: 10653997 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 C196513A9 for ; Wed, 24 Oct 2018 01:32:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB26A2A355 for ; Wed, 24 Oct 2018 01:32:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 995632A36B; Wed, 24 Oct 2018 01:32:02 +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 233F02A355 for ; Wed, 24 Oct 2018 01:32:02 +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=uX09lMTN8xfgFTFOWepqTNnPJvWT9RvCPxne3Nu7SWc=; b=mZNClc626W73aT Ln5MgbhpuM/dLim/Uz41f2772d2r0oYAWemKUmCLKqREGQSKN6lLiA60KcWcuu7gNAYeTehX6meEq voyB14bgcvLH/ADyDq7hREUWeLZyGyAXhh0i0fXJ/V1imVUVALEUgm+VBMcckXNZ4Q4fqBS3Ix4ZR eYCgyDyS6Mt90mHCgpKN2h39oP1Mevbz0M40TYnEsRTbTu7jtUeRL5kNn3gg2/95f8726pPFazvy+ tFqRJRwhLrrXstkMIfB1r5kgPpkhUULgKEugC11A2rbp0V3kqTMFKNoDS6oYdLTlb6UPvZEfRJ461 yYDQo70NHi02u6lcLp/Q==; 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 1gF81d-0001u4-2u; Wed, 24 Oct 2018 01:31:57 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF81Y-0001qR-2q for linux-arm-kernel@lists.infradead.org; Wed, 24 Oct 2018 01:31:53 +0000 Received: by mail-pg1-x542.google.com with SMTP id c10-v6so1518726pgq.4 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=O8LLIBoW8PnTCSUyq/bZXH40kbPjfu0LbFD/djul/veM5IwPdSQ+fHW5pbEBwKawyZ BfV9y469LJF0+HqzwaqSv8KVW0Qm68EnPwiguchaKlfPtdxkGvB8god+sAkOLoq6nfWK Aarn3Pqlpe7T8sXH1YhlyKDwwV9ttIoQVFdrg3hW5fAiABBXIqygQQBG3yjn9ToKm+Ge 8RU2t0861LodxQtjp++E7qMBr6Czi5fXpjRx6mM0Yjc07A6ayVi50nZHBbiRwtoFn4e3 CrDlRt0cqUjiwhXl9nPTb9+242jkSkZBNvS7S0AFE5pPCv+4zSIRfh7VkzTP5gs4V/YN yZ/Q== X-Gm-Message-State: AGRZ1gK6FLjG2iPOJtvSVg3Z7PebFLBhb2ZJc6lzfJ4T//CWOVYj92j0 A/Qk0CC9clOL3Vg5sbkVWSnT9A== 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_177094_60B428BE X-CRM114-Status: GOOD ( 10.88 ) 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: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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(-)