Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5499840pxu; Tue, 22 Dec 2020 20:21:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkoqbPvSNeIZor3aAzwYlaM39ACdSqBKUtEYs62/Sk6Zi2xTE/MfXUAaDcHX78vTC4R7wr X-Received: by 2002:a17:906:3c04:: with SMTP id h4mr22029804ejg.220.1608697289666; Tue, 22 Dec 2020 20:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608697289; cv=none; d=google.com; s=arc-20160816; b=ZwK3P6IH0QLTAF3YSCIWNDPeH8TDxo90DemnWHuhq5cKTOoTqZVvYHZDJ+pGZ9eydq QlZsahAUDF0sMG8AAMI+bE91mNEuA4W2DNJdyoeavyynm0jRK6g0YAm2Ot5u8D2+4WCx zBQFexIU0lz11zcB4ti9GaFS3GDz9URlKHnXyC86nPmoVsTJbTUyRyDYv7s0cCQ41JVj ohr95qE6esE3/3hf6FP/L6Bp+mbA+7R2jXunubW8bly4mLBZf/JpP8NSdISSW7GWi6hE brwen/ZmZ85TcopCGTmNRtDjipJM/+lHa3yQt6tj/NHbIzsuRAOVgYZnmm+eiCNBtBcl nLZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=26Fr+AtJaqoWMCq9NSUD8XDm547WXau8kIa+Po3ijaQ=; b=q9B05ivUSm2qDbADK6CO3UkHAg3oWr7TvUMxgKbk074qiJ+H9bQhOotb8U60+679r3 zLGNyI2UURXGdyZ3KGB94hftoBkzaJnH2j3iYlzs6E31j4qsqoZpvSpPJ/WsaiVHLzYL cqdG3dSDku+lEuGUqhdTrCQRDWTUGiB/znSwCVpPEfpgyO+2zZTNBd0xtXNlcJFtKH3A SxRIFcHLv6ZoNtvsDMYAFhu5UrkHqiHqJsowGaiM+ySq81tFKTrnXSuKc4DRRh/JYQpI PF5yePU/xxohzeAkKHrkreYY/jN47KFMXDedocHRHwrfXW0Ot56yJrqI2fYb6SpiFvCj dIfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sT3RPi0c; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s30si13071533edi.465.2020.12.22.20.21.07; Tue, 22 Dec 2020 20:21:29 -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=@linaro.org header.s=google header.b=sT3RPi0c; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbgLWEUT (ORCPT + 99 others); Tue, 22 Dec 2020 23:20:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbgLWEUS (ORCPT ); Tue, 22 Dec 2020 23:20:18 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57FDCC06179C for ; Tue, 22 Dec 2020 20:19:38 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id q22so9629737pfk.12 for ; Tue, 22 Dec 2020 20:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=26Fr+AtJaqoWMCq9NSUD8XDm547WXau8kIa+Po3ijaQ=; b=sT3RPi0cmSySv3TpxqXakwSZd4+TeVAbgUtHRhhkr9zD2oKndQhh3nAF2ZWRKFEwst fxL85ZuUBFNAQ5onTZ3nMEdhsWGrllkYRYl1tGbri1cjmNeEdBXqoR00oFAdZlinf2sG i3trnl1FImHrkHWsQjqfYqktVg5C0p9hGp3zMs/4X0+liPYJ7Fj35h7EVOzzqMQQ4BmP NoOLT9BhfddUa5brM8O18Y39e3dDinW3tOqST333s6BHhsMhvIuY7sARBYQPtJaNRvta GBJlJv49y/k+55A3aNfm4MsUIuzj/qy5vzUrSvfzWGdcTkTePTwKJsgOch7YgnJiucC7 W3zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=26Fr+AtJaqoWMCq9NSUD8XDm547WXau8kIa+Po3ijaQ=; b=RWgoTzj7ncrhDoBHgbcWzqtKWWBP0ZPwqSKDJ0bvR+cg2m0heoNSUW8CBJ7+JityJs qJU3rPiZds6JojCHhyJCMNxEECZk1BE+93Q2WGDGtpdXncYCZ5q09aHvFw7d+rDLQ2iP AJdBzvzfsPUc1eD4d6XJlUEo1p7poLxncQsuB0sQbxHNnE+K9SgbDBCDS1jEV0MXK85m 14TZCjU/bsQphQxhE1fG+PoG+39AnTJy92gakBrydKUqBqOjdDMISq2Ky8xDEXcU3c9J n7TFAnTOSqgbMwsG4w3tn3arH4kIb2rOYC12yAKeYfB5Am16HDN618CElvugiT/plwwj 8/gg== X-Gm-Message-State: AOAM532RW9wMh7uHRM6N/3Di7XcQ6aFeI98xkmO8LouSThYEiqUwr4WG LwRScs3nEWrCVZ9yz3/dZkoN9A== X-Received: by 2002:a63:c205:: with SMTP id b5mr310031pgd.281.1608697177622; Tue, 22 Dec 2020 20:19:37 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id j23sm2918258pgj.34.2020.12.22.20.19.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Dec 2020 20:19:36 -0800 (PST) Date: Wed, 23 Dec 2020 09:49:31 +0530 From: Viresh Kumar To: Dmitry Osipenko 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 Subject: Re: [PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil() Message-ID: <20201223041931.klnppy4fu3sdgtsz@vireshk-i7> References: <20201217180638.22748-1-digetx@gmail.com> <20201217180638.22748-12-digetx@gmail.com> <20201222064253.x7vsurh7q5k7qzb5@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-12-20, 22:15, Dmitry Osipenko wrote: > 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. Right, but why do you need to send 0 for your platform ? -- viresh