Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp620235imi; Thu, 21 Jul 2022 07:46:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1syYmHAPnxGywSwgCg9yUX+CdO05VxvPwcUc1TYxtoCdD5Q5ykD6XfOgkcmbxs53bZ9xY0M X-Received: by 2002:a17:90b:3b4b:b0:1ef:f5b0:ce60 with SMTP id ot11-20020a17090b3b4b00b001eff5b0ce60mr12044583pjb.71.1658414768077; Thu, 21 Jul 2022 07:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658414768; cv=none; d=google.com; s=arc-20160816; b=fBOBHzaDhHFfc94JsJYWe25NzE0mJ2PtmtO1ANay3dAY6XHwsHWt/A6hvvzHkGy0wV 8rgnxbxzjnOJx+f4FccFFRPQwf3YTrfm/M6AGVFqAK1fzxIn6eraEQCmrj/WzFMTma0O MuYixp2IM6Kl23DBIW1AMShQIeZ/ilesljg/szGTALJBAUooNx39VQA/11x+9/QKRim/ k3XtYc94tngUDofo9cE5nMPvDv6ZUi5eqy3xDbzPCg6c+FQuoAGiepHdSuG6ls/5FC+U a33PUqJ2aCT/6Ne1OpUmfHMzfxNF7dgk8qBCVOuZ1C5rz/apjBNTtyR6uKrzqHPW5IPp gBmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=K8gd/m3LxS60yVx7Ft64S3I2geJNhfthrTCnHWEHH0w=; b=XTD5yZS7c00D5zJTeifl1dgs7wj97h9sPd586z/u7eClKBhgY8d8yzzTdtd2Uzobj1 axxu1a5wIegmsaimGBmKLmmcmfzm4ig4jUcuFQsr9G6kWOF/7gkvMFQ1boyjS3h4taV0 hDbEe431glK79KV5KOsNx44uIPhWpsiZpid2zAcGuTIY+JT563nXt5eY3T+G6MaKkhFg sR64882LdPc2FvJRQVwXHnETUyUWGUXFLALSEZxXZ+R+iCLOjo4sW08SvvN0+qHWja1f Z9wniidl08netThuTduxNBCs/2HUa+B6M1k45BX2N3VKINRegQ9UUk+1H5FDuaBgSP+k jUIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PxLxMfnP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a056a00174800b0052b17fa6f49si2852858pfc.262.2022.07.21.07.45.50; Thu, 21 Jul 2022 07:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PxLxMfnP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229601AbiGUOkO (ORCPT + 99 others); Thu, 21 Jul 2022 10:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiGUOkK (ORCPT ); Thu, 21 Jul 2022 10:40:10 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3306E92 for ; Thu, 21 Jul 2022 07:40:07 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id ez10so3458040ejc.13 for ; Thu, 21 Jul 2022 07:40:07 -0700 (PDT) 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=K8gd/m3LxS60yVx7Ft64S3I2geJNhfthrTCnHWEHH0w=; b=PxLxMfnPHw7C70/BqUyBmctzuSLEjBn8t9+6JFbmwTV1PD+DxOc2aU5qW7Mv9pOvTL g41dPI7CL0SpwaPG1W9qn4AuZyxlGo0ZAhZuhm1Rg4BRvIOdSJZ27GhSGKT6BURo+9nE srGoMQ7BP/A7n2MGZvMwViiTYMpGYf3A5xR8Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K8gd/m3LxS60yVx7Ft64S3I2geJNhfthrTCnHWEHH0w=; b=68GcPkhKWI99nbGV9F3rqWbURmEShP0mt7layiMecbHbE0W8j/XgZ3nW4jYbx1+dX8 LG+mO7OEW+XIGP21jmft8jMh09P+wlfI9mGvFnz8a0xQhuz2xrs4hssCQNJKkDIEeCip hFoGP/YIOz57nMC8wh3HOFoGJhaCB6erDwPocqlGNTPf7aa9JIydzffciD3iYnRwtkoN Gg6pvc/UwHzySlpP/bCyU1CHvSIa0f4THtse0CIKL7OtGTTuXIcCvxSLsLjBIHCCxhwY lQVuyqMcnabj6Te0k+g+6mRXq0Y28JjSb19CV/z9nO2njhSc9pRI+HGHS0CT+B0uJISY UtyA== X-Gm-Message-State: AJIora+Ql4lurO23Wl7dfh+QjiGJC615mKfkn/vDQi1vMHAScR6ciYMF O+Q0kXVJxe6JVPp0ZTL4mHR5x9OYI1usA5Vi X-Received: by 2002:a17:907:9619:b0:72b:4761:be19 with SMTP id gb25-20020a170907961900b0072b4761be19mr43329219ejc.20.1658414406229; Thu, 21 Jul 2022 07:40:06 -0700 (PDT) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com. [209.85.221.41]) by smtp.gmail.com with ESMTPSA id jw7-20020a170906e94700b00715705dd23asm923273ejb.89.2022.07.21.07.40.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jul 2022 07:40:02 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id m17so2291328wrw.7 for ; Thu, 21 Jul 2022 07:40:00 -0700 (PDT) X-Received: by 2002:adf:fb12:0:b0:20c:79b2:a200 with SMTP id c18-20020adffb12000000b0020c79b2a200mr35372536wrr.617.1658414400165; Thu, 21 Jul 2022 07:40:00 -0700 (PDT) MIME-Version: 1.0 References: <1657038556-2231-1-git-send-email-quic_khsieh@quicinc.com> In-Reply-To: From: Doug Anderson Date: Thu, 21 Jul 2022 07:39:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v16 0/3] eDP/DP Phy vdda realted function To: Mark Brown Cc: Johan Hovold , Kuogee Hsieh , Bjorn Andersson , Vinod Koul , dri-devel , Rob Clark , Sean Paul , Stephen Boyd , Daniel Vetter , David Airlie , Andy Gross , Dmitry Baryshkov , "Abhinav Kumar (QUIC)" , "Aravind Venkateswaran (QUIC)" , Sankeerth Billakanti , freedreno , linux-arm-msm , LKML , Liam Girdwood , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jul 21, 2022 at 4:20 AM Mark Brown wrote: > > On Thu, Jul 21, 2022 at 12:31:41PM +0200, Johan Hovold wrote: > > If you're copying someone into a thread that's not obviously relevant > for them it's good practice to put a note about it at the top of the > mail to reduce the chances that it just gets deleted unread - people get > copies of all sorts of random stuff for not great reasons (like getting > pulled in by checkpatch due to once having done a cleanup) and are often > quicky to delete things. > > > This series breaks USB and PCIe for some SC8280XP and SA540P machines > > where the DP PHY regulators are shared with other PHYs whose drivers do > > not request a load. > > > Specifically, the hard-coded vdda-phy load of 21.8 mA added by this > > series, causes several RPMh regulators to now be put in low-power mode. > > > I found Doug's suggestion to handle situations like this in regulator > > core: > > > > https://lore.kernel.org/all/20180814170617.100087-1-dianders@chromium.org/ > > > but since that was rejected, how do we deal with this generally? > > > In the above thread Doug mentioned adding support for load requests to > > further drivers and Bjorn mentioned working around it by adding > > regulator-system-load properties to DT. > > > It seems quite likely that changes like this one affects other systems > > too, and the effects may be hard to debug. So a more general solution > > than playing whack-a-mole using DT would be good to have. > > You could add a way to specify constant base loads in DT on either a per > regulator or per consumer basis. Yes, this please! ...on a per consumer basis. :-) It's been on my wishlist for a while and would eliminate a massive amount of code / tables in the drivers. We could debate syntax, but I guess you'd either do it w/ two cells vdda-phy-supply = <&vdda_mipi_dsi0_1p2 21800>; ...or with matching properties: vdda-phy-supply = <&vdda_mipi_dsi0_1p2>; vdda-phy-supply-base-load = <21800>; -Doug