Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp835747imi; Thu, 21 Jul 2022 11:56:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vE0S7eXvbqrbBo5qylzNBq8wclWEQU5UlPCY/NmvOShx3YnFc8JekNZd814XkIhjt5qRFt X-Received: by 2002:a17:907:762f:b0:72b:3203:2f52 with SMTP id jy15-20020a170907762f00b0072b32032f52mr41498437ejc.395.1658429807563; Thu, 21 Jul 2022 11:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658429807; cv=none; d=google.com; s=arc-20160816; b=JOHqpZ4pfyrgVQ1TtXzSD4nevvrsM6krxKnv09fou7fatxY3QSz1U/zYrMGud7jCKM DBogvakuiOmgoTRYCVRDLcDlA+2lz1wNjPmv/hoHxuUI1R2ETnw0CF4QThi1Pp+f0W7P W+TZQGHKSSNSfshrDEm17lCt+n5XSMoQxSpCqLV9QiwJnyKyetBo1x0ysL71mk8jBkIo CryUv9W6wMzkQXBosSLhiBP/ty6L6jGyz3fw/wzoBEyvbeeZgh79Tq2kSlPKCuGZpOvr EoVMNWkUZHkeUKSatqfMUW4dzvVOVWxvlpZckg6eIK0JmbERzDUGVoPB0gpWg0z31Ojr G4Dg== 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=+RQnuRQVAxAGI0N6/NnLGG+FggFTKyFm89xEXb36pkw=; b=Q1miivcsBMa5EhtEsPtpy7NazNT6B/wrwOZ3dkYiofviAkN/8+9LCqXsUCpiaSgGGR mAZwllHnqmPzr7mHgrHt5zuqK79HMCEOPh30jD1sdS5RTwg1vhP+Qv9oYjPs79bIsEmM YHzpZh5BIbxZlIkRTABCwwkCJ1oFfy0kC7TlROWZqhokVQk1AfBGC9+7nYxoxO0EGisN ButDwRTmGnMh727upsmnHplz7Hc9Ye5oaY3s3mNuG+UFhjxenMtEv+JRvmDtWBzlT5Iu oz2T72fyeh2V7cnaoK7lz9g2zRsz2PpRHYrRdVOnTXKHOFeOWwD9MU3vAGViocGlWIKl t4KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iyniFeKP; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a056402194100b0043bcd636e2esi389758edz.81.2022.07.21.11.56.23; Thu, 21 Jul 2022 11:56:47 -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=@linaro.org header.s=google header.b=iyniFeKP; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233079AbiGUSmE (ORCPT + 99 others); Thu, 21 Jul 2022 14:42:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232893AbiGUSmC (ORCPT ); Thu, 21 Jul 2022 14:42:02 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A3989A87 for ; Thu, 21 Jul 2022 11:42:01 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id b25so1963200qka.11 for ; Thu, 21 Jul 2022 11:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+RQnuRQVAxAGI0N6/NnLGG+FggFTKyFm89xEXb36pkw=; b=iyniFeKPwDu5YPSQmW8iQt+xqhxFQoPdxQjdUIgapHfOqPMwIDAiMIsP8KHWWmUUqc VBlBRg7crLnY3rJMYSRDh2ATS1OW2p4cK1dEkdliPUAbxZa3mfkqy2FAjNp/eouhe0QV BvDeWRn33axasZAOviZ1Vau68l6ZKppGw+WAPxwCd6aEe3VaM3Zz3Q63Gz7OCFFaSflj eFsgsWbn2OLOQPDP72jbZ5ZQY168A2emerxJYUpXrhBAJuQBSaQf1ib0yGUzE3yVMJKO 0fzeU7s5SEoi8OAk5sb9a1b+uvGGEuddx7cfMtcL6lsZetlLUhFLOCseY/xQJFvFLSU9 RCKQ== 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=+RQnuRQVAxAGI0N6/NnLGG+FggFTKyFm89xEXb36pkw=; b=haU4NO0CSTA9G3TDGcWr+yk0Kv1AsYiVscYO4oP7LkuS+SFierZuYYzdSkouFd36cv CqZxk7E+juaOi0F27uVm7hgI7igb9XjAuyPPdYl5CzWriH8IL0V/qlSbwVgQzyNL6c3/ spbUt45K3D0CaOIDb2PHQ6U1N1JQMUMacTVZ/2sfh8motnfrJL7no3Tkgc+aMJLZW5lS uo3wnsKVM/k78x/NcsXvjkkEikixwnbRz+/y1Gzwbg7xGj4ojdjK0L5HtfDPDuBSvaJL eFTqKjDRbIjSY8xbJv3p3r/iUjHO/RWu2V1NFo4ukyFcuMyLUTRiOlGcuXwXQH9ewR7a 432Q== X-Gm-Message-State: AJIora+tR1rdNrIwgbdpbwY2hPy1rpa97KhJZxzp7jUzbe8DujjXv693 bAk8v9/pJM3ZLvntSEqeeJJWpW1uM4XqXBkpVgEf6A== X-Received: by 2002:a05:620a:2408:b0:6b6:2df3:d18b with SMTP id d8-20020a05620a240800b006b62df3d18bmr55176qkn.203.1658428920842; Thu, 21 Jul 2022 11:42:00 -0700 (PDT) MIME-Version: 1.0 References: <1657038556-2231-1-git-send-email-quic_khsieh@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 21 Jul 2022 21:41:49 +0300 Message-ID: Subject: Re: [PATCH v16 0/3] eDP/DP Phy vdda realted function To: Doug Anderson Cc: Johan Hovold , Kuogee Hsieh , Bjorn Andersson , Vinod Koul , Mark Brown , dri-devel , Rob Clark , Sean Paul , Stephen Boyd , Daniel Vetter , David Airlie , Andy Gross , "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.1 required=5.0 tests=BAYES_00,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 On Thu, 21 Jul 2022 at 17:50, Doug Anderson wrote: > > Hi, > > On Thu, Jul 21, 2022 at 6:25 AM Dmitry Baryshkov > wrote: > > > > > 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. > > > > I'm trying to understand, why does this series cause the regression. > > Previously it would be the DP controller voting on the regulators > > load, now it has been moved to the DP/eDP PHYs. > > I think in the past not many device trees actually hooked up the > regulators to the DP/eDP but did hook up the regulators to the PHYs? > That means they didn't used to get a regulator_set_load() on them and > now they do? > > It should also be noted that we're now setting the load for a bunch of > USB PHYs that we didn't used to set a load on... Might be the case, yes. > > > 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. > > > > I think enabling a regulator which supports set_load() and without > > load being set should cause a warning, at least with > > CONFIG_REGULATOR_DEBUG. WDYT? > > I'm not a total fan. I'd love to see evidence to the contrary, but I'm > a believer that the amount of extra cruft involved with all these > regulator_set_load() calls is overkill for most cases. All the extra > code / per-SoC tables added to drivers isn't ideal. I'm fine with the load being specified in the DT (and that sounds like a good idea for me too). What I'd like to achieve is catching load-enabled regulators for which we did not set the load (via an API call or via the DT). -- With best wishes Dmitry