Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5835337ybv; Wed, 12 Feb 2020 00:58:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzCaRvrCpH63jxUgLvMg0cKITN2m181xE0jE3Mi/YNriYRk27AIQCWvkbRNEeBTFrw116fM X-Received: by 2002:a9d:7357:: with SMTP id l23mr8105706otk.10.1581497910056; Wed, 12 Feb 2020 00:58:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581497910; cv=none; d=google.com; s=arc-20160816; b=LQ3x3S9SgtS7BRdfnmsRmu7seh0Mug0rYN8WNmfH8ZW+p/iBixs6Fr6DlGLqImC9vD ussTmyBFHoEYcd+wqBzLFOEJlLrXMZe5mSMih+IUQ2IK8l6oiPclMAiI68q5Cqwp2XiP Z+H5VFzTdNNldObri83+c7r3GnR2SsbQMElCntjt6twxWtlZGwJeBx2TX14mRnuI13yt FP8UdeALKe4tYlNBtOiM1lWgXS31ZSlf5oNQU93HEjei63DBwaNJ/CzBkF40+qqVV1AP I5JRoPsVdol1kg4xWn5vRH/IXUte3kovQwj6bip3LbgDCOueZSJRxXl1X6HwUgXemi/P G3NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ur3OMSSElNkgt+TEQoz3DfEtasxtebNZtxecAgjVKuM=; b=Ra7vf/UgEc3sP6YHzdrxVVL1y8NsFhfl+bvwA51Rm6MX1TOfrBjvrumsDTPoyLL/QP aET8mvKIKNjJABty40ezWr/xjCqYyc0fRgXCOgHq/0BrWyt8uTJHsFlcIN65WIxQZdfX umRQ2iuNnWqkLCruPEziCG7hUhbtAtKvk1IQxQImFsSbS7QaOOLAtvBhAk9fzhX6B2Vo sVRP3VjN6FWa98CPGe8bVT6pX1tcLRxwxrxya58SoC9puoF5lCrFEozsWxpztXYK2yN9 hr3KOvfCQeRY2EU+imPBoiyqT1b/sqObUmlGaDoXPUWNO8xkgg8hmKw7PcbdW5kZ+Y59 9ilQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=arBmSPB9; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si2869552oiv.267.2020.02.12.00.58.16; Wed, 12 Feb 2020 00:58:30 -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=@chromium.org header.s=google header.b=arBmSPB9; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728537AbgBLI5m (ORCPT + 99 others); Wed, 12 Feb 2020 03:57:42 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37766 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728150AbgBLI5m (ORCPT ); Wed, 12 Feb 2020 03:57:42 -0500 Received: by mail-qt1-f194.google.com with SMTP id w47so1025532qtk.4 for ; Wed, 12 Feb 2020 00:57:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ur3OMSSElNkgt+TEQoz3DfEtasxtebNZtxecAgjVKuM=; b=arBmSPB9ulCRr5nKRcy/iAlVZW/WzcptFmfTDvviOna9Y+2/oHBtpe68dTXgTyZZW/ etzaNL4Lie//Orgzo7vVuX1aJkkUVn463rJ0dh5n+kks75+xBNAjMjhXCdk25BsvTZ/N TeNJcFWRDjK8PbSVwil692NHPZvsMw0K43sbM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ur3OMSSElNkgt+TEQoz3DfEtasxtebNZtxecAgjVKuM=; b=BmK8V+5F42FFSqBWr1Ke/zQmvsuOlxZDVcJ6DkBnT9EjhOVrH/53Eya4rgSIaPH6HE bB1h1ryrk2h7fsQ1rrMLOeqVeMKQdKka2PepWCzrkLNeVZIP+dVJfLFUmW0mhYHnNDC9 tORV72XR4ZrXSFjqlsaPulFjL8LX4vzm1AQ13413943c6rGksrPHrR+8fb4XLJbqA492 YuaWQ25kOdqhFTeYCsb6wD8I/MxWo2LHU7yP+uo5bHBl6D3MuLzVL4NwGldx1gogZih0 1GXxqY0ZcS53lMGMTzesLFu42ujZ/swVjlRu1D7ZtI40ECnPW7mnyMX/mODlxrOZREkR UcWA== X-Gm-Message-State: APjAAAWcetMpj/Lt8mWk18fnIZbL1ifLJK02JHoeU2ffrGQA8r1Zv+b2 nregciRGjumGsD9nmoWohxncjcF7a7F99JtOqsJpvA== X-Received: by 2002:ac8:2fbb:: with SMTP id l56mr6311584qta.346.1581497861704; Wed, 12 Feb 2020 00:57:41 -0800 (PST) MIME-Version: 1.0 References: <20200212075529.156756-1-drinkcat@chromium.org> <20200212081340.vcfd3t5w5pgxfuha@vireshk-i7> In-Reply-To: <20200212081340.vcfd3t5w5pgxfuha@vireshk-i7> From: Nicolas Boichat Date: Wed, 12 Feb 2020 16:57:30 +0800 Message-ID: Subject: Re: [PATCH] PM / OPP: Add support for multiple regulators To: Viresh Kumar Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 4:13 PM Viresh Kumar wrote: > > 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. I see... And you're right that it's probably best to change the voltages in a specific order (I just ignored that problem ,-P). I do wonder if there's something we could do in the core/DT to specify that order (if it's a simple order?), it's not really ideal to have to copy paste code around... > -- > viresh