Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3568750ybz; Mon, 4 May 2020 05:39:36 -0700 (PDT) X-Google-Smtp-Source: APiQypL3KF0QSg3L10EbzBci+r+cnwCiu5ZcnLWUgX30/wUmaEuE8QqlGL8N8g8N4nJ6BNWMH3XC X-Received: by 2002:a50:ea87:: with SMTP id d7mr13901213edo.48.1588595976382; Mon, 04 May 2020 05:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588595976; cv=none; d=google.com; s=arc-20160816; b=RMfo9L9BZsbXAAy3AfP14gcX/ak4eAj/RkeGxnq1BhpPvOgOTgBc0DLHxhooE8lZ+q xwLrBzfnwnS7JWNE9/6NdZgJEUf5C7O8Scjv14+XWcpuDkVJCJC65MZKFIFAVNngXiB0 OqU7N1V4fymuXM4IZGa8NbJUmgK5NP1f7GyRpSsA0JlnYanbDvsL85t+yJbqzbzi7zhk 62PZCnekpCTNiwY6tm8ZIMz437pdT6a1YHrxkYbB4JfSRviszJ5FuzzRQeeWMSITq3nD UMLc9ZIojGQagr+xXtiuodHfV66YAkHpVgzP5d+KHK87GQucs70D2Zw5WFLvhzuBD1Fv 4OKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=rknaC2TCytI0e0UGEz1lxoHb9ILU/Hk1mGxInS5Hx0U=; b=yGjHkctCclyRC/+u8wWCx9vrkMtjjhGHKo8aIEgvtnQmoqEDuEc1yyX5/sO248ijt/ lolNT9Zfn2Pb3kfGWI5/j8yh7rKsOz3fKK4ygr5A4n9CcM6VR3vBwgfUFCtKWChRc2AC 3r/JDvp2/RPxkB9mXc0GJnzY8oZMn2SXcUrNJclmJ2ruYxcMSvGyg+TK8Jg8qPUqDhD5 7huGJmSkV+7BhuIdFM5iUTeR9q3cazdJ6/1rit2v1ydb4h4FQjhHWFkimKsZ+9i+JaTw YN9RWH6IVE4cSzeN0218LCXxwNv2K1n5R5Vwa+KCRUxk7YcavokSEd0sQ366Jsv+tE+3 0dXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="UkBq/JyY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si6661254ejw.407.2020.05.04.05.39.13; Mon, 04 May 2020 05:39:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="UkBq/JyY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728402AbgEDI55 (ORCPT + 99 others); Mon, 4 May 2020 04:57:57 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:36638 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728146AbgEDI55 (ORCPT ); Mon, 4 May 2020 04:57:57 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588582676; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=rknaC2TCytI0e0UGEz1lxoHb9ILU/Hk1mGxInS5Hx0U=; b=UkBq/JyYhaj2lPcJzE+vwv+0ZLZhPsheUOvX12Oa0uqzXQcqV4B3/1I3ttW3+fOQvjeaXHoP 9foXnulwyS35Rai7MSZtaqLyv28sqrnNENwX8vMW3jcEh7P2Dk+UJ6HwKT2xnLdu/4VNDhVF WDk+BplGK9eX2clG8Sw9Z8zXCJY= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5eafd90a.7f88f64a42d0-smtp-out-n01; Mon, 04 May 2020 08:57:46 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7EA6EC433CB; Mon, 4 May 2020 08:57:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.1.106] (unknown [27.59.218.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akashast) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1089FC433BA; Mon, 4 May 2020 08:57:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1089FC433BA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=akashast@codeaurora.org Subject: Re: [PATCH] interconnect: Add helpers for enabling/disabling a path To: Georgi Djakov , linux-pm@vger.kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org Cc: linux-kernel@vger.kernel.org References: <20200428091650.27669-1-georgi.djakov@linaro.org> From: Akash Asthana Message-ID: <44cbf83d-f210-97ec-21c2-ebe65b9821c1@codeaurora.org> Date: Mon, 4 May 2020 14:27:39 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200428091650.27669-1-georgi.djakov@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Georgi, On 4/28/2020 2:46 PM, Georgi Djakov wrote: > There is a repeated pattern in multiple drivers where they want to switch > the bandwidth between zero and some other value. This is happening often > in the suspend/resume callbacks. Let's add helper functions to enable and > disable the path, so that callers don't have to take care of remembering > the bandwidth values and handle this in the framework instead. > > With this patch the users can call icc_disable() and icc_enable() to lower > their bandwidth request to zero and then restore it back to it's previous > value. Thanks for this patch. Are you planning to add bulk versions of icc_enable/disable APIs? Regards, Akash -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project