Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5223984pxu; Tue, 22 Dec 2020 11:18:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlKS2b2V2cuL7wSXduKKHV1y7IEGLVjm9sYN0Stp3rsvxekh61IBQ1RUsJvy8dCg9c51dO X-Received: by 2002:a17:906:77ce:: with SMTP id m14mr21870932ejn.10.1608664722759; Tue, 22 Dec 2020 11:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608664722; cv=none; d=google.com; s=arc-20160816; b=aNPtJMGSipXDikvUAAwVrp1NefVtxkuw87+ZM4wiuu3wGh37T5+YjPDP8ydE9WI2Zt CRR/CXxm7/PfEgOs8Zs2Cp8jtCjdIyq1k17xxce73OEqAmoySH8idlM+zv8pjIkfOO5E k4FnbwK96KcwXjJHr+gh5/Tf8e8Vg9Y8Cqmj5pZN41mt+WUUvrF9YHLsDqWBMKPK9Aue V4xRp3HdMXeSnrUA99z8zf8xdNb3Kty7fwbYtS5k1Z1l8B5AjEtYsAGMyfWolIJsWGJY mjpjQs6HEqizfUhVlkmGrrRY4q+sepI1zowDnNLcGqSjg0KyIMjEKicmuQenyzTBa74I 73HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bPx7EE6PSbCPkDarnx0nbSqX4DyTXsuDpEiN7AF5ASk=; b=sc+IvrOWSYDXx/B6JPhPyzSCGWrQGxUf4EaeMhdMfApphB93ZuVdmEskkNF3PCbjmT 9Ny6peA5uNZnGfZdvWHU2PcEufJSSuZTq4QqdXtfFUJUCo5t5f/J9YMneQ0mjwVe1cuK a/x6oaQt3wj8oFkFLi3eZTMAJ0NhFNPrvQS3nslKLlXnS2bu9ecja/e6EceHQKeVNsqA PjvPFSNpe+PM9DcpipKbfinhOLrkTlw4WPGfR9WbsOoUicAfir2E2OfCFgQRtZIzbYYF vO5YNjHOIeWIl+8SSOjiBzfwQXfyalo1dtDLJCa3P5QpoO7tZWaxal2jbI4Z8r5FDkb9 k4RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=by5CwRSk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si12727546edx.585.2020.12.22.11.18.13; Tue, 22 Dec 2020 11:18:42 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=by5CwRSk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbgLVTQf (ORCPT + 99 others); Tue, 22 Dec 2020 14:16:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbgLVTQf (ORCPT ); Tue, 22 Dec 2020 14:16:35 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C436C0613D3; Tue, 22 Dec 2020 11:15:54 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id y19so34370117lfa.13; Tue, 22 Dec 2020 11:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bPx7EE6PSbCPkDarnx0nbSqX4DyTXsuDpEiN7AF5ASk=; b=by5CwRSkj7I1IIVMvp0X5QOxMswVE4c93suYm7juykVfkZccthrQYR/1LHg5tNX9Fs G5RwLCFfqZuGdA/NMT84/GKhThuNV13dgCCXDs/xbrTgpQc5HAhUTsSNzuw3OAt9hmPF rCBS/+GhCjpuMIBVDAodHt0e2K5MCFdMyRJCUenuFRI69khvLmnFtCssyFBTVA8mgAI3 +P71mriOwhz3yEpqEecEZB4c63IhIbysXU/t4EmQ7A6e7VqHYmWGP4lyIkwrmWQ8nyWi oYy5aN+2WIyhWj0VJdqnrFFB/kKhcNWdk3BD+639Sf/Qe3l2191KixQ85whWtQvBNbO5 Japg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bPx7EE6PSbCPkDarnx0nbSqX4DyTXsuDpEiN7AF5ASk=; b=Fey+j64ifXLO4xycxCn46C77SC3vQCqakx1dN2M4ltplYRSRYXHk3t9I4GKaYL3yre aX2bWLliU0t+mpjQUzpTuHvy4JLziPq3Rhgfh0NGXvDyaYLIeEUI7sX30BKmz80gpEa6 PWQDg2so5FFTRSaRtC0T4mGf0TnzjRv26GdYXWQoAUDgVagjjGthsOm+9TMr/sMyklz1 lRhE06/bTo5S9EdARs4ii+e89T3B58J7/YYh4Afu9lp2i2I6x8ruYksXAOXFP/cXV94K LZirK0YLYWQZrpE3nkPBAlKtRGZ67SlVLmhAhGlRWjSDs8dD0i4CZa1+jy8cPHTGkf22 2zvg== X-Gm-Message-State: AOAM533z1ki7FDtSI3gKT4R+EJ7jWKBEXQMe36fvAc4xRQlcnP/fJpKV Tt7XTd0S/Dxk60gnxier6lpAzo9yoR4= X-Received: by 2002:a2e:9847:: with SMTP id e7mr10954928ljj.388.1608664553007; Tue, 22 Dec 2020 11:15:53 -0800 (PST) Received: from [192.168.2.145] (109-252-192-57.dynamic.spd-mgts.ru. [109.252.192.57]) by smtp.googlemail.com with ESMTPSA id f23sm2788410lfh.196.2020.12.22.11.15.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Dec 2020 11:15:52 -0800 (PST) Subject: Re: [PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil() To: Viresh Kumar Cc: Thierry Reding , Jonathan Hunter , Mark Brown , Liam Girdwood , Ulf Hansson , Mauro Carvalho Chehab , Rob Herring , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski , "Rafael J. Wysocki" , Kevin Hilman , Peter De Schrijver , Viresh Kumar , Stephen Boyd , Michael Turquette , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org References: <20201217180638.22748-1-digetx@gmail.com> <20201217180638.22748-12-digetx@gmail.com> <20201222064253.x7vsurh7q5k7qzb5@vireshk-i7> From: Dmitry Osipenko Message-ID: Date: Tue, 22 Dec 2020 22:15:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: <20201222064253.x7vsurh7q5k7qzb5@vireshk-i7> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 22.12.2020 09:42, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> Add a ceil version of the dev_pm_opp_find_level(). It's handy to have if >> levels don't start from 0 in OPP table and zero usually means a minimal >> level. >> >> Signed-off-by: Dmitry Osipenko > > Why doesn't the exact version work for you here ? > The exact version won't find OPP for level=0 if levels don't start with 0, where 0 means that minimal level is desired.