Re: [PATCH] interconnect: Add helpers for enabling/disabling a path

From: Georgi Djakov
Date: Thu May 07 2020 - 08:09:27 EST


On 5/4/20 11:57, Akash Asthana wrote:
> 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?
>

Yes, i have already a bunch of patches that add bulk versions for most
of the API functions. Will post them on the list.

Thanks,
Georgi