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=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,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 A5315C4CECD for ; Tue, 17 Sep 2019 15:56:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 764F92171F for ; Tue, 17 Sep 2019 15:56:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="HlnPepDc"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="A+Vs1aCj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730026AbfIQPzc (ORCPT ); Tue, 17 Sep 2019 11:55:32 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42064 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730023AbfIQPzb (ORCPT ); Tue, 17 Sep 2019 11:55:31 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5591E615AD; Tue, 17 Sep 2019 15:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568735730; bh=tD+ponUYuh16Yv1ORieO99BuPOjcSPBEMm+I+qnOooc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HlnPepDcmzwd/1CnBnqvXuWLyvKSCcw4SdttkouSvNbm9XnbqoMk4LrZkx/+5RhHC nICRdTayzYT69pgBhOpYfAS5uQpAvfQJrb82Pb2YPUu7i5I7BzO2fcGCUCij9sALjs iQ5K7Z62rz1YrZwhGmJ0R5zSmJIKk46maV8MDT50= Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 5D1D06133A; Tue, 17 Sep 2019 15:55:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568735727; bh=tD+ponUYuh16Yv1ORieO99BuPOjcSPBEMm+I+qnOooc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=A+Vs1aCjPmcZL52V+7eCFuLTPuZDY4tNDLTB3NkSPL8/1Zui0EKh0DO+wJ3zWADN4 kBpWd2jsntFJot+mX9wmHFcOMkiQkvXFq7oRWIXawqPXayVCj3CEcGr/Jay6J9b0qy nrf5yiWQW3OwjECTBWlMT5ugg2XDIo/+116md3yE= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 17 Sep 2019 21:25:27 +0530 From: Sai Prakash Ranjan To: Raul Rangel Cc: Stephen Boyd , Bjorn Andersson , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rob Clark , Sean Paul , linux-arm-msm-owner@vger.kernel.org Subject: Re: [RFC] clk: Remove cached cores in parent map during unregister In-Reply-To: <20190917153419.GA258455@google.com> References: <20190723051446.20013-1-bjorn.andersson@linaro.org> <20190729224652.17291206E0@mail.kernel.org> <20190821181009.00D6322D6D@mail.kernel.org> <20190826212415.ABD3521848@mail.kernel.org> <20190917153419.GA258455@google.com> Message-ID: X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org On 2019-09-17 21:04, Raul Rangel wrote: > On Mon, Aug 26, 2019 at 02:24:14PM -0700, Stephen Boyd wrote: >> > >> > ---8<--- >> > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c >> > index c0990703ce54..f42a803fb11a 100644 >> > --- a/drivers/clk/clk.c >> > +++ b/drivers/clk/clk.c >> > @@ -3737,6 +3737,37 @@ static const struct clk_ops clk_nodrv_ops = { >> > .set_parent = clk_nodrv_set_parent, >> > }; >> > >> > +static void clk_core_evict_parent_cache_subtree(struct clk_core *root, >> > + struct clk_core *target) >> > +{ >> > + int i; >> > + struct clk_core *child; >> > + >> > + if (!root) >> > + return; >> >> I don't think we need this part. Child is always a valid pointer. >> > > Bjorn or Saiprakash > Are there any plans to send out Stephen's proposed patch? > Stephen has already sent out an updated patch for this here: https://lore.kernel.org/lkml/20190828181959.204401-1-sboyd@kernel.org/ Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation