From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50EA1C3A5A6 for ; Thu, 29 Aug 2019 20:05:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1DD24208C2 for ; Thu, 29 Aug 2019 20:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567109117; bh=AC4gPJfrVrrii0HywXSnULvkrHqrXMjorH4PY24NIjA=; h=In-Reply-To:References:Cc:Subject:To:From:Date:List-ID:From; b=v91ounlB/Ai4gQT/8YPmhp5Hr/gYhQMQYV1X8TenqDa60xqBPihHnj+TKgeQStv8j yJnjoU5VYJPqGHxjBGagRodatdHvkBTjIOvEPUTng2DInLsbXZCPwncvXJTZaptdta oRKe3JEEIXX46NoNSP3MR7DbZg827ZfwfcKiMzqA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726619AbfH2UFQ (ORCPT ); Thu, 29 Aug 2019 16:05:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:38538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfH2UFQ (ORCPT ); Thu, 29 Aug 2019 16:05:16 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AFB0622CEA; Thu, 29 Aug 2019 20:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567109115; bh=AC4gPJfrVrrii0HywXSnULvkrHqrXMjorH4PY24NIjA=; h=In-Reply-To:References:Cc:Subject:To:From:Date:From; b=SlHe5Oeeh9/O5WzTo7SsVCbNGyQbPalgziUivEKYsktatpgPqDink/dSf8MdRdAE2 UW5HLJPtG0gyvZJcQiHRiU8Q4IJBrcIHjrb2ugNNurH2Oa5v8vRDWOg+EkcDoX0ERM quuNvlOclcFpGw0TVbcgLu7lr/BY9kvFyqyTf69g= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190828065929.32150-5-t-kristo@ti.com> References: <20190828065929.32150-1-t-kristo@ti.com> <20190828065929.32150-5-t-kristo@ti.com> Cc: linux-omap@vger.kernel.org, tony@atomide.com, s-anna@ti.com Subject: Re: [PATCHv2 4/6] clk: ti: clkctrl: add API to notify reset status To: Tero Kristo , linux-clk@vger.kernel.org, mturquette@baylibre.com From: Stephen Boyd User-Agent: alot/0.8.1 Date: Thu, 29 Aug 2019 13:05:14 -0700 Message-Id: <20190829200515.AFB0622CEA@mail.kernel.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Quoting Tero Kristo (2019-08-27 23:59:27) > diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c > index e3e0a66a6ce2..47a0d1398c6f 100644 > --- a/drivers/clk/ti/clkctrl.c > +++ b/drivers/clk/ti/clkctrl.c > @@ -680,3 +689,38 @@ u32 ti_clk_is_in_standby(struct clk *clk) > return false; > } > EXPORT_SYMBOL_GPL(ti_clk_is_in_standby); > + > +/** > + * ti_clk_notify_resets - Notify the clock driver associated reset status This is completely unused in this patch series. What's going on? > + * @clk: clock to notify reset status for > + * @asserted: true if all HW reset lines are asserted > + * > + * Some clkctrl clocks have associated resets for them which effectively > + * prevent the clock to transition from/to idle if the reset state is not > + * in sync. For the clock to transition to idle properly, all associated > + * resets must be asserted, and to leave idle, vice versa. To provide the > + * current reset status, the reset driver should issue this callback. > + */