From patchwork Tue Mar 5 04:49:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10838939 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 E358417E0 for ; Tue, 5 Mar 2019 04:50:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF23E2B77A for ; Tue, 5 Mar 2019 04:50:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C68FF2B78F; Tue, 5 Mar 2019 04:50:06 +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 6A3882B77A for ; Tue, 5 Mar 2019 04:50:06 +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=UJEugclnbIoizAjOTm9h5nxtpoc4Yip0QyhrRf4h028=; b=XFEgUELubSVte0 Ip2BN/2LB/y2cTrHVH4uUHkB9Gf1f39QZgJGxMqxy4BR/6EZxPfbCdenqVVN1e6IPMzhfOH24Ub+i r98LXFT3DpL6Z8+nJgJDe5ECeg7Epp/UoDwojVjKjwPNvwnXuUJLWftDQDjExclvXBJWQEgYHeEmE YAGifJuS0j4bSM9mNtwDnGVC/pOLaiqEK7Rh76B2sN3L7PfCOKD7ywSFNqRvqYt5K0y+q+df6SeCk ID+1FQKf6JL3RUvct+eiSPTq3qW0/uDCysIZC3uQ2xhd6lA96hU02R+E4pDIvg4UDTrMW4jbs/f94 zNXlOEPKz96qm3WUzUGw==; 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 1h121d-0000B7-KW; Tue, 05 Mar 2019 04:49:57 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h121Q-0008PH-WF for linux-rockchip@lists.infradead.org; Tue, 05 Mar 2019 04:49:46 +0000 Received: by mail-pg1-x541.google.com with SMTP id l11so4721002pgq.10 for ; Mon, 04 Mar 2019 20:49:43 -0800 (PST) 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=k7wULXXbasfiJzjma87EPvIMtuy4uP4l7hd9LnQo2Ms=; b=gpYMhnbKloRJllZAIQBHZnN6i9bi2oW1nE6dif/rEpAZgs+d/Lv/sDiIRV7P3NgZbl z8UpIfBYynxakaFKKJOmy7kSG/1lQHNalLyzz+opU/2/gf7hy68X1KNS5YYq2Ol8GaUU mKV9E5e1rk4CAuliDncKlP26YiT8FF0CbWMtc= 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=k7wULXXbasfiJzjma87EPvIMtuy4uP4l7hd9LnQo2Ms=; b=A8juoR7N4FkUFt2y9RJK+5ozSUpVzU+bEgzc8MC0oGMI2L7D8CFvg22Ee43oaMubNM YoSBFPNwdSSoHM53eFH39Fs38J+ciE0klxIOJPdxoqra3J+dWoqhqVAK7C2eyyzyPa2u egUWS5XUbWuLJP7wR6EnwAnsQ7k98jJ/sliaKAKlzZ61UavhZaIv/VVDQ36k7OdLkIjZ CsPobzgwAE8y63jUHMMHSioh88Gl46LCNGwDEA1r4hYgQOCkrp9xvXnDH3EjmGI/okNB jaYMwTElT/lEBDht7Zd0sKruxChUJZIIEwVWL8CPohhzTDWpeCAZb5i19RKoHxLVwlFi xvcg== X-Gm-Message-State: APjAAAXlHlHCjXyzE0Fmc2VUlYKBugc5GA5HXR023nZGw9bZTsPL7NYI 4golV/hJhjfxmw1VkXmXBbK44A== X-Google-Smtp-Source: APXvYqxagnb2X0j1Cs0vJg2qbYSrSE8QmUo3yMrLrSnBV7OTdM7NjrAI6FU/U6zf7NNZAy0A50Vn+Q== X-Received: by 2002:a17:902:6f08:: with SMTP id w8mr24407125plk.5.1551761382586; Mon, 04 Mar 2019 20:49:42 -0800 (PST) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:db8d:8e3f:2514:5db8]) by smtp.gmail.com with ESMTPSA id z15sm15893883pgc.25.2019.03.04.20.49.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 20:49:41 -0800 (PST) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] Coordinated Clks Date: Mon, 4 Mar 2019 20:49:30 -0800 Message-Id: <20190305044936.22267-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.21.0.352.gf09ad66450-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_204945_063889_5A195078 X-CRM114-Status: UNSURE ( 8.76 ) 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, jbrunet@baylibre.com Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP v2 changes: -Unrolled recursion in unprepare/disable for "clk: Remove recursion in clk_core_{prepare,enable}()" -Fixed issue with "clk: fix clk_calc_subtree compute duplications" -Fixed bug with too few allocated clk_change structs in "clk: add coordinated clk changes support" -Further cleaned up patches 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 coordinated 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 | 659 +++++++++++++++++++++++-------- drivers/clk/rockchip/clk-cpu.c | 256 ++++++------ include/linux/clk-provider.h | 10 + 4 files changed, 642 insertions(+), 290 deletions(-)