Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5803610ybv; Wed, 12 Feb 2020 00:15:12 -0800 (PST) X-Google-Smtp-Source: APXvYqy8FU3q2NJlGe/++hNgtczbGMKDrLBwhKK7ZPArEYQquc126EcMwfAPu7bn3gGpBnsMc/kx X-Received: by 2002:a9d:7590:: with SMTP id s16mr7843913otk.89.1581495312652; Wed, 12 Feb 2020 00:15:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581495312; cv=none; d=google.com; s=arc-20160816; b=J5QN9RnfsY7emx3x0lWoz3Dc+fiJtsv5SsJk3vXZffEO9w8GTBTN7abMZrcttA1REN Eues98N8RAhqJ/+fp+T11dXbvvYlwOoxBaZW5ZYaKZOVyIHxNe0+ioGsHKYY9n03FhFy 55xD0qRW3c2fGvLe34Na3O5KCBibWjgwQLVGRUc7JbGDnnsVMiWtGTX8i0uIHSoR3IYL T3YFfVPY+hUek6Xl3ZBDyrswD8I9ugTTZ4kym24ZQH2VnZtsXx2Wc5nmm0oLRrDrSpdJ x8xOiu9f0GjazTB0qJNTLTjB6+hVWYKVDJUgFzobm3zK1597cmgUHYElDu35FvTS/QGU 5PLw== 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=5/XIkUC5xt608XQA38mKMGkwHHAPePjWb6+7/svVCz4=; b=g4wZNmF/0VChZpYCKLBJC8mOhXwk0rfUdHybS3gpft7QgDFHWuav5TH0S1iGTvUSlt L0wDtX6DO2Dr0xCiMQ/aNqweJqDiyU8xlbcDk+JlVGsm8aQlhaRnSVcu9dOcWUgeYMKj UMmcT5IWsRHjct4f/RXjts3RJ5+Sj2Mw/gzmuCGV1X3QUCFD7C60rgLF+9ueDBWVH3iu zAXj6b06n8Z2xHytnlG8DWNb/iaHFH8Rj13p8zp+qoNgnnGkTjr1iYDzyIRyJ2xP+UGd 0f4iIztvcDA2CZN1I5bFe7Eu3hXZS8e4ZL4XlF84cVSiIBqKnuRUQnyTrtTd+WxK11pi mwUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N8yXAYth; 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 e9si3097386otk.318.2020.02.12.00.15.00; Wed, 12 Feb 2020 00:15:12 -0800 (PST) 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=N8yXAYth; 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 S1728490AbgBLINo (ORCPT + 99 others); Wed, 12 Feb 2020 03:13:44 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38545 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbgBLINn (ORCPT ); Wed, 12 Feb 2020 03:13:43 -0500 Received: by mail-pl1-f195.google.com with SMTP id t6so665977plj.5 for ; Wed, 12 Feb 2020 00:13:43 -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:in-reply-to:user-agent; bh=5/XIkUC5xt608XQA38mKMGkwHHAPePjWb6+7/svVCz4=; b=N8yXAYthamMwjGoB3Fqo14OoXi1DjUjzGgv/Dof/FW8plapj2+7o8yLycCw4/BxRPk tUyVRH7jnPikfFvLzOv7EXAKF+CeDC52xEYcERN/yCbf8qiMA9Y3MABoxxHE2V/2omSI nuAo+Kj4ZgCF6B2zp8NaQzVBwVrwnRgZ+FltMa+k7keAFwwAedCLZB91BUVwh7B4JDVe VtmZBKZTaX0ilhcIQ6jPo91aVnO+qoTREGzeDxJjMsputR/ZvFLrf3TxwPgZFy89/m2i PqPrys78Ev063Jxp6Wgb4wu8GANjjb/9fFHvQBcZrGsC1wA5vpJGghd3VAxLICUzbHnP LLKA== 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=5/XIkUC5xt608XQA38mKMGkwHHAPePjWb6+7/svVCz4=; b=ZS88J1HH2UE9n5MDgPgqOWH1P9YUo5bcGtRXvgDVuLxkc9AL04RrGZzZ3pX0XNkfB9 yHCHiW6uEwFnt/+Mi/wJFkFEiBH18hHYOvwpSoADNrepl+WZALefFL0aOqzHwXDnfGG0 eXVR9Q/v7Egy1I3aO1jxU00xpfG7c9LJ9z91o0hZG5mYwc9sZCZGgwcR7H6nsx8mDHoT W+tGNsw8g1XrjlYGSC0Tjk2V+KoPn6dI/OxsTDOfhhFdE8TIg2JEU+AbOlybFqhZwx+s UKWNCu1OASPJ2JAJS/T84YFx7ovzx0nVoa2ijiOn/MRV2xD5BBXUKwbbM8qsXSp96VN1 R/ZQ== X-Gm-Message-State: APjAAAUHG5Vk6Dwubost7ZnFdHW8bwPGyCpttwh5V2F96JnvoAUk4rn8 RyKMn7jVxrl2Iy/sLI+D6zL/EQ== X-Received: by 2002:a17:90a:3243:: with SMTP id k61mr8843323pjb.43.1581495223019; Wed, 12 Feb 2020 00:13:43 -0800 (PST) Received: from localhost ([122.167.210.63]) by smtp.gmail.com with ESMTPSA id 17sm7101028pfv.142.2020.02.12.00.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Feb 2020 00:13:42 -0800 (PST) Date: Wed, 12 Feb 2020 13:43:40 +0530 From: Viresh Kumar To: Nicolas Boichat Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / OPP: Add support for multiple regulators Message-ID: <20200212081340.vcfd3t5w5pgxfuha@vireshk-i7> References: <20200212075529.156756-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200212075529.156756-1-drinkcat@chromium.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 12-02-20, 15:55, Nicolas Boichat wrote: > The OPP table can contain multiple voltages and regulators, and > implementing that logic does not add a lot of code or complexity, > so let's modify _generic_set_opp_regulator to support that use > case. > > Signed-off-by: Nicolas Boichat This is already supported in a different way. See how following driver does this (hint dev_pm_opp_register_set_opp_helper()). drivers/opp/ti-opp-supply.c The problem with a generic solution is that we can't assume an order for programming of the regulators, as this can be complex on few platforms. -- viresh