From patchwork Wed Oct 24 01:31:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10654011 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 CB07E13A9 for ; Wed, 24 Oct 2018 01:34:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD3F32A397 for ; Wed, 24 Oct 2018 01:34:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B14282A3A0; Wed, 24 Oct 2018 01:34:32 +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=unavailable 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 5A7882A397 for ; Wed, 24 Oct 2018 01:34:32 +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:References:In-Reply-To: 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: List-Owner; bh=E3XnL+dT7Ykg3OyCO08QzI4adQxEbzfEgWbEFNSXnvU=; b=jgWaazzcFJYoZk mpQBIxiw4WLYXLKPqYmPOhc9Jg9oUmlEeCISTJiXiaQgS2/tifHfhJEiGCs8/Wu4lrcseCCX6J6Hh qDC2O5eQ5GTUk4NZg3JRv7YIhmAMS+v2EKyXCXH2bGvX7QGcFRu2M50dsAqCcvE6Pof80udXCAKoA H0yPQu5diXKXxeL0iCO7ZwXBEDU0kH7uflZszWMnT7hDXFzpm3zzU0Uh270oJarhBAL643ZWBVOCt er5RuzpPRwxKlasSiLmS/SL9DyyyfZ6xpO/hu3tmDsKLODQIh74pNBk130m+VdZ/YvZ0afJ5CvmnO aVKt42f81BUt2KwfuBfQ==; 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 1gF842-0002qV-6f; Wed, 24 Oct 2018 01:34:26 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF81b-0001rq-VC for linux-arm-kernel@lists.infradead.org; Wed, 24 Oct 2018 01:32:14 +0000 Received: by mail-pl1-x644.google.com with SMTP id t6-v6so1424583plo.9 for ; Tue, 23 Oct 2018 18:31:47 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=i9K0nyViFXBj0Drso8AJlM+PUE5qlmvWph59qni6wn8=; b=n/KxNjXuw6UA4CkVkKthC4ej7XwtLwUUPxdcOhrUDuo4U5SEuR5iLEzLxjlxqDmeTm 98m3WGuMdHZUisCg/h7GfGBmRbRyDr4E/DaPyRSp4QwjobDkHFVi484fxQzag2+7GgAu CdDsq1nS4v9iqKHF0ag5jYfl8YVnOhRu1N1oc= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=i9K0nyViFXBj0Drso8AJlM+PUE5qlmvWph59qni6wn8=; b=Lm0KNrgXXsh0zYKbn1lIcdcqWNNYyLEaX8ssyBv9UkSKCslPxKDUv4dkEnVDSFnkpy uIjdxi7PeEaAhNIALoeUnV9jFvkFzEpwm7sGCt+RbuU8f0aaRpP4863MzR1UF3TH+QwC 9qKOTcBLCI75IVSrq5l02uzqDOEySia110xbwvMUJZIcPp6aRyRpIP6IYHRWbIp9UItJ IWFRA2YLSmz/+jhUeoTkeq4/VS5rYU+bcW7x37VhNgd6xMquPWuLU8SeUoKVKmzVrHur Hqina3wenM1qm3tYPHvMrDAjV2IScstLJc4B7FV4j0gNM+PAqFarWAhLhixpGsAEwRNe P+Og== X-Gm-Message-State: AGRZ1gKEkN9pHuWQZSiwJMrLCpVVTBmK7tFg3r4MfABiisFtnmokyPfI rAYhQxEpcF6OWp9h6whjxU5BCZTsA1c= X-Google-Smtp-Source: AJdET5ciNObA0Ldg4HIecnAIeKWC8gKU0jnseVL1j8He0/pTawyqD5GeQW+arrhXQwVhOgZsRMrI6g== X-Received: by 2002:a17:902:2907:: with SMTP id g7-v6mr586984plb.201.1540344707606; Tue, 23 Oct 2018 18:31:47 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 18:31:46 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH 5/6] docs: driver-api: add pre_rate_req to clk documentation Date: Tue, 23 Oct 2018 18:31:31 -0700 Message-Id: <20181024013132.115907-6-dbasehore@chromium.org> X-Mailer: git-send-email 2.19.1.568.g152ad8e336-goog In-Reply-To: <20181024013132.115907-1-dbasehore@chromium.org> References: <20181024013132.115907-1-dbasehore@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_183156_117748_983E0A2D X-CRM114-Status: GOOD ( 12.30 ) 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 This adds documentation for the new clk op pre_rate_req. Signed-off-by: Derek Basehore --- Documentation/driver-api/clk.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/driver-api/clk.rst b/Documentation/driver-api/clk.rst index 593cca5058b1..917f6ac29645 100644 --- a/Documentation/driver-api/clk.rst +++ b/Documentation/driver-api/clk.rst @@ -82,6 +82,9 @@ the operations defined in clk-provider.h:: unsigned long *parent_rate); int (*determine_rate)(struct clk_hw *hw, struct clk_rate_request *req); + int (*pre_rate_req)(struct clk_hw *hw, + const struct clk_rate_request *next, + struct clk_rate_request *pre); int (*set_parent)(struct clk_hw *hw, u8 index); u8 (*get_parent)(struct clk_hw *hw); int (*set_rate)(struct clk_hw *hw, @@ -224,6 +227,8 @@ optional or must be evaluated on a case-by-case basis. +----------------+------+-------------+---------------+-------------+------+ |.determine_rate | | y [1]_ | | | | +----------------+------+-------------+---------------+-------------+------+ + |.pre_rate_req | | y [1]_ | | | | + +----------------+------+-------------+---------------+-------------+------+ |.set_rate | | y | | | | +----------------+------+-------------+---------------+-------------+------+ +----------------+------+-------------+---------------+-------------+------+ @@ -238,7 +243,7 @@ optional or must be evaluated on a case-by-case basis. |.init | | | | | | +----------------+------+-------------+---------------+-------------+------+ -.. [1] either one of round_rate or determine_rate is required. +.. [1] one of round_rate, determine_rate, or pre_rate_req is required. Finally, register your clock at run-time with a hardware-specific registration function. This function simply populates struct clk_foo's