Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11879162ybi; Fri, 26 Jul 2019 01:05:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDf7LWNKcJSnXiwwe6yCH6R3/m9x9x+cwqTgtDkE3TlNCzRMWvXEhEHPAz9EByziG9nSRz X-Received: by 2002:a63:6904:: with SMTP id e4mr29564907pgc.321.1564128352819; Fri, 26 Jul 2019 01:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564128352; cv=none; d=google.com; s=arc-20160816; b=Lu2oNxKqd6XDBcDB6iIuEgxVdFR2PaHwqG/cEC+KRdS3W9Tue2tsqGo+Exqxxdk+5W iRVVTt5cH3eWgr25Xln9nVLz5xeAKGAY9WrUmMRhcba9w5Sf4wZcT71viWJgMFUARZxt JgmsMkT7vOo7J9qi55id5CTCkziCElanXct03Br/qrUGpcaFAjD/BBSKReoFydRsXwg7 3ZtmSydu5xSdZ+5OF9zHv2v+PuavouLJXyeHH4/1zHvazTYepuuulPREi6zs7/iIGeZh bcrn7fhg5VHO8ktM3KxKNUg97aLRVEsE9te+61SHmaF8tO8aI38ES3DYJESfunLNJ+jO 0r7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=V6zPBev9xQgiBqMyHVwiFqQKL5cx+sR2tLt2bKc/lVQ=; b=ej706dzw5L1B+n/DcXpNs+e35ulEdBcf41XweyPSu0ZMfKxEoQIV9KhnKxE7zSVaDE RwlH24UK+AeX1ozhweNG5DzuIF6hkF7lUkZ81YrO7dxqznd5w/5dDrwYXWCxYlWjWRNF eBLAhr7J47YUtP2GVlezZ/M5PoIjUaifeojN1bjXLTackPpgXF9UIC2Qa5kjEOr5ghqG Kyl2JWfnag7JZlw71fZMkW7PknN6nb7WQ4fs3hsrh91sNH1/84tBXZkv4mhvSS6AtxL2 VwBYquAl64nq/nHN5Ul1MLP/RNkdkcbeFM4dDweWnv2RIry4NqaV99nAY46ZgHtpu4Ou 3nSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HynS/ASw"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s3si17717685pgn.467.2019.07.26.01.05.37; Fri, 26 Jul 2019 01:05:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="HynS/ASw"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726463AbfGZIDf (ORCPT + 99 others); Fri, 26 Jul 2019 04:03:35 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46525 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfGZIDf (ORCPT ); Fri, 26 Jul 2019 04:03:35 -0400 Received: by mail-pl1-f195.google.com with SMTP id c2so24431706plz.13 for ; Fri, 26 Jul 2019 01:03:35 -0700 (PDT) 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:in-reply-to:user-agent; bh=V6zPBev9xQgiBqMyHVwiFqQKL5cx+sR2tLt2bKc/lVQ=; b=HynS/ASw3Ys3ZyhOwYmGKzl1m1kwEE7nhm8gNvbojrDBb+rqjQ9hmTAP92o9YJlhz0 aj+aQeSIN6AmLljyuVNRQm9hKkmsP3BfsnY6Wg4fJ57DD5Nh5FLPsSydLc1zd1/vIgQo ZoLDbBxJWLgD7RMdTjZPu0VwaQITz47QSC5Uv9xnyTa8hqqJ+GzW+WM7ommW+BeSRik+ H5hOMdwjoCoEFOI3NUWqYKYbzmFdcqlISmkJ1ff28H/CiE4DUUrxP9EEktKHnuutBIwf r26wI9R4XxfMoyPcU29ZUU29FLjWh7Lw5LO+TDJIXbHjcdsQB/w8yS1yjatI9gyD0fdt i8TQ== 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:in-reply-to:user-agent; bh=V6zPBev9xQgiBqMyHVwiFqQKL5cx+sR2tLt2bKc/lVQ=; b=Ub3rd68lkN2tMZ5Y1akuTzckTCqJ0XJpKdFvkAQJwVGHxz+h6lVQphftvUap4kgBzC 0rIWiSP1NLseE2pedi2pxNKHcCSargSy8njXxJUvlv12r0GGyaOHoDL4laQv3QjR+D08 1k3duxErFIZxeeCAaYClIrFumjFqsxsy0fFEWF3r5lmgYnCrIO6fYpRedArBwFInAxN+ UakeNxC+39YUEjru+0eimNFgsz2Dj6DthYp8KiC5sIc87zNqzYmgNaYkkJC0z1/gp9P/ LMyBKZi5SVnjJdWMWtwBIaoBYcT3XTsv/WVRpXF+C73cXDaUcfxh24nKzXTdNHzbzNbg J0zQ== X-Gm-Message-State: APjAAAV8dS9oZ5q5r2p9XucNh4J4/F1WiRZunKZm5iFAcsxjdXXuOwhG llQrIWEznCCCVTov+Dhv5iaamQ== X-Received: by 2002:a17:902:ff05:: with SMTP id f5mr92070283plj.116.1564128214872; Fri, 26 Jul 2019 01:03:34 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id q22sm47092154pgh.49.2019.07.26.01.03.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jul 2019 01:03:33 -0700 (PDT) Date: Fri, 26 Jul 2019 13:33:31 +0530 From: Viresh Kumar To: Niklas Cassel Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , linux-arm-msm@vger.kernel.org, jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, ulf.hansson@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 01/14] opp: Add dev_pm_opp_find_level_exact() Message-ID: <20190726080331.qzvi737nj4oflghz@vireshk-i7> References: <20190725104144.22924-1-niklas.cassel@linaro.org> <20190725104144.22924-2-niklas.cassel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725104144.22924-2-niklas.cassel@linaro.org> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-07-19, 12:41, Niklas Cassel wrote: > When using performance states, there is usually not any opp-hz property > specified, so the dev_pm_opp_find_freq_exact() function cannot be used. Removed above two lines while applying. > Since the performance states in the OPP table are unique, implement a > dev_pm_opp_find_level_exact() in order to be able to fetch a specific OPP. > > Signed-off-by: Niklas Cassel > --- > drivers/opp/core.c | 48 ++++++++++++++++++++++++++++++++++++++++++ > include/linux/pm_opp.h | 8 +++++++ > 2 files changed, 56 insertions(+) -- viresh