Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp216286imn; Wed, 3 Aug 2022 00:33:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vd2nrkeakXbD0Br8rdaE1rLYmW0COF4qvK6F3TWoMWlobRFIibpRD1wdq4pbQy+760eL4r X-Received: by 2002:a63:2a89:0:b0:412:6e07:78fd with SMTP id q131-20020a632a89000000b004126e0778fdmr19698286pgq.161.1659511991148; Wed, 03 Aug 2022 00:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659511991; cv=none; d=google.com; s=arc-20160816; b=e0ODUlkJPKU8ZdbrhONWbH/AAUWLkraBwiQOMGCzehM2cTYwXorgnVJL644QYr/6rp ryT330Q99gHXXiard8T0KHXem79iBGh5I+db+pmQ3HnXiuCgcOrtSVUHecOMxewz2wzv xlMGUBB9F7ggt6NazEKfrqO7DJdi5zEsgGQk2bAFle0w6YW1whHoxSR2EsIDezgneHuy zz3h2h9fufp86SSmM+IYL+tluaeZAlm6iEAejHcH32/gslB/AW6xSB128t+L90B8Mgxa 8jvyj3/9ahVHNcd1ht8NuLWFdabUkFW8q0UFeNlvGn+zjdCdq9G4jo8or/HW12GjyJgY dPKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=umnD8l+pmIj3F8d2bI9z4JVgak5mWcgtg1JJ//tmyOE=; b=p0RS7KoxfwcMtV6Inay7wCuYrormUg770v9NLbqcjiS4kEEU4zZVwUeX75BwB6kj8B RwFQ+ZiOW6ApT3qaf9nge9DKDZEmKhOEvWnR9w3PI8kivYpftC2P77GACgqAcd/SiYCo x2M/JqeHuYhbrB5+k2IIDafd7rBPwoJ5aZGguZM40yAGpevCwF/I+8yhVyt99XF590Yz rJkU59IgV1CKcThTO80JXl7LXxlasyPWdclwBEj6u98doJj8WKlApQ6dwlQIBzwahCpK xsAgKdNX948cs+jG42EdfyAYYnwRybsFI3pglFrvCfeQGRNWewpenmzG825lhCx27jp/ +bLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XiDjPDkB; 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 d12-20020a17090a498c00b001f5454ae976si1139253pjh.35.2022.08.03.00.32.56; Wed, 03 Aug 2022 00:33:11 -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=XiDjPDkB; 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 S234047AbiHCHHY (ORCPT + 99 others); Wed, 3 Aug 2022 03:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbiHCHHW (ORCPT ); Wed, 3 Aug 2022 03:07:22 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4002A102A for ; Wed, 3 Aug 2022 00:07:21 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id y23so7628477ljh.12 for ; Wed, 03 Aug 2022 00:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=umnD8l+pmIj3F8d2bI9z4JVgak5mWcgtg1JJ//tmyOE=; b=XiDjPDkB2gI+cwSzR3BWx61USQuEAzJUNP2sNOsn+h45GpCSrlW5/w8oHpEZn7m6+9 IhBmM31jArQbu63iTr4JjcTlgHmD2NtHnbKRhIdEw1SZcAdB7ECP2qSgPtI9M5QBcwX9 ikohWvYgf80KpTnekm8OcGBd54V8z3el2IfB5nkgaFZCrSnzV9XeJoFN2MSlQfotVHiw VZ16+y7PEkZu2+vkE+7sv/QuH2kXNDy0YfedKi+jtGonWBf1mWi3rPnVKZ6/Nb58115H lx1svUbKLUVBNfQCK8d73cRLv/oRbxc32idvIPakJi40QHpiRSDnn2Wt3SDjQwcDnn4C E+oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=umnD8l+pmIj3F8d2bI9z4JVgak5mWcgtg1JJ//tmyOE=; b=2wcuRcALH1CenZAdDqLtE/tvduPZsc5pYhXMCj7S/OY2uHoxlmlkhiR3hcqDilhHC0 I0I4C7Sxm/wwKmy9qBaZ8G4VJ2IXhjUvK2SjlCe4rwbVBhbqEO1GP4UWFD1uS21+WoPv sLcfoFW7+ub2k+MGUJAB1y1YLazyHm35DHSyCbvcOoUAmAns0ELTHrlEp18ujXZ0lEtf otEIUOD8ezCBPbNyqjirT+4br9VQnRHB3YI5BV4wGVs0Uug2E9nmckmSekN8k6WYMWzu e7l+zcWSBDcy+r/gyXBu9hjK0PE80SJGPXzFUDOiNEi6fsSyMJq7rU8OYWTBuhe1czY4 XWdg== X-Gm-Message-State: AJIora9RJHMrY+CPnP4JOOXn5BIDRAVOJgNLwcm4M1HMr47gcOZF3bkT Kxg65nXxPbDqcIayQ5GK4mYcgg== X-Received: by 2002:a05:651c:886:b0:25d:64c0:27b1 with SMTP id d6-20020a05651c088600b0025d64c027b1mr8156579ljq.396.1659510439634; Wed, 03 Aug 2022 00:07:19 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id k2-20020a2ea262000000b0025d9552fcafsm1676638ljm.97.2022.08.03.00.07.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 00:07:19 -0700 (PDT) Message-ID: <1c75d832-cb9a-3e51-abdb-10d7fb7275bd@linaro.org> Date: Wed, 3 Aug 2022 10:07:18 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v3 3/6] drm/msm/dsi: Don't set a load before disabling a regulator Content-Language: en-GB To: Douglas Anderson , Rob Clark , Abhinav Kumar Cc: dri-devel@lists.freedesktop.org, Mark Brown , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, AngeloGioacchino Del Regno , Bjorn Andersson , Daniel Vetter , David Airlie , Jonathan Marek , Konrad Dybcio , Loic Poulain , Marijn Suijten , Rajeev Nandan , Sean Paul , Stephen Boyd , Vinod Koul , Vladimir Lypak , linux-kernel@vger.kernel.org References: <20220802223738.898592-1-dianders@chromium.org> <20220802153434.v3.3.If1f94fbbdb7c1d0fb3961de61483a851ad1971a7@changeid> From: Dmitry Baryshkov In-Reply-To: <20220802153434.v3.3.If1f94fbbdb7c1d0fb3961de61483a851ad1971a7@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 03/08/2022 01:37, Douglas Anderson wrote: > As of commit 5451781dadf8 ("regulator: core: Only count load for > enabled consumers"), a load isn't counted for a disabled > regulator. That means all the code in the DSI driver to specify and > set loads before disabling a regulator is not actually doing anything > useful. Let's remove it. > > It should be noted that all of the loads set that were being specified > were pointless noise anyway. The only use for this number is to pick > between low power and high power modes of regulators. Regulators > appear to do this changeover at loads on the order of 10000 uA. You > would need a lot of clients of the same rail for that 100 uA number to > count for anything. > > Note that now that we get rid of the setting of the load at disable > time, we can just set the load once when we first get the regulator > and then forget it. > > It should also be noted that the regulator functions > regulator_bulk_enable() and regulator_set_load() already print error > messages when they encounter problems so while moving things around we > get rid of some extra error prints. > > Signed-off-by: Douglas Anderson Reviewed-by: Dmitry Baryshkov > --- > > Changes in v3: > - Fix typo in commit message. > - Just directly call the bulk commands; get rid of the wrapper. > > drivers/gpu/drm/msm/dsi/dsi.h | 1 - > drivers/gpu/drm/msm/dsi/dsi_cfg.c | 52 +++++++------- > drivers/gpu/drm/msm/dsi/dsi_host.c | 71 ++++--------------- > drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 52 ++------------ > drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 4 +- > drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 6 +- > drivers/gpu/drm/msm/dsi/phy/dsi_phy_20nm.c | 4 +- > drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 6 +- > .../gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 2 +- > drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 6 +- > 10 files changed, 60 insertions(+), 144 deletions(-) > -- With best wishes Dmitry