Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp399423imn; Wed, 3 Aug 2022 08:35:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vf2CLA1LnAdb17xgVUJ7rN6TXlBQjUKburbdz+5S16pUXAcIiwYF/Mx0GTXldURn12vgCC X-Received: by 2002:a05:6402:17dc:b0:43d:a1e:67f4 with SMTP id s28-20020a05640217dc00b0043d0a1e67f4mr26598767edy.191.1659540911728; Wed, 03 Aug 2022 08:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659540911; cv=none; d=google.com; s=arc-20160816; b=TeZ7rVry6i9V/QpFsaArl8lxM8Y/IaEjuWRwyTCOPo5yNZ4edEYFrBrJhi6s73pDX6 Be2xoQnd4uuHFPp+Ud85ikz7o+rLZLkMJbaEnltgspWO4YnhFOEHGRDMjYe5T+jkAtW9 2Kby8QlfVMOrkR390EE3Fc8hcij4PvTnSn3UMPnJhDbj/f2OFBpHu+ZNP4BDC2Z5JLKR yQ4Wdgt8WDPW/wlThGzgRzF1UXIsRJkLiaBxruP+xALimEOtpyrD4DxR1X2dzItKYCWZ ujsh+XwC64XgPrzcaZwAB216KVMwK6evR30E/Tlp068wjfcU3cXDUEfC2EN5teacaaHk IvFw== 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=QSNLoRq7qbNX21X/zV/2AlYjV7hEb4BXWVGqbeUJ24g=; b=OwLcjPUsl26TbXPj1bJcNPJByx+1O17Mn6QR29wMSh6QewOR8fP37VdVy14aB12fKA AaDRSZRAd9jWvR0fFlqx6qyUQxbepuprJFvnAPJXOjtTD9FvdYDczeQpK5TAJaRBp84F 1LgD3X7ILCGfUHfAyVZ0WtoNcdQLnMAxNlKr+x+nb/u/H6JlUIFJ3KlmfbQQk6f09QJR 1U//HKrLgewdoIF4A0ptiAtYS0SoKKEg5OyjiHGS5l0pNq7Iit1CzRJ9xoHxjk1Ix2wE LFcMKTssQ7g9H3752zVExjnuuEvOVukbP6eA0zZBD653DIu1SFGa9Z5wE0TyIYlnz3cO Ex2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nzI1RPne; 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 gt42-20020a1709072daa00b0072b3cde0ce8si2813359ejc.471.2022.08.03.08.34.47; Wed, 03 Aug 2022 08:35: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=@chromium.org header.s=google header.b=nzI1RPne; 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 S238214AbiHCPay (ORCPT + 99 others); Wed, 3 Aug 2022 11:30:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237807AbiHCPab (ORCPT ); Wed, 3 Aug 2022 11:30:31 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 777965FAE for ; Wed, 3 Aug 2022 08:30:29 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id t5so2147804edc.11 for ; Wed, 03 Aug 2022 08:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=QSNLoRq7qbNX21X/zV/2AlYjV7hEb4BXWVGqbeUJ24g=; b=nzI1RPneh/LJJCu1k6xuiZTtzaae82xzjDcJUWtbJsNeS7XJdegrZyHq7NHnqw/K3v z5eW0E4AYjhiQE3UwN3v0NPjuunZorY6mJSCV9HwvyMq3kEg6Oek6rOvDV1r5SPQL06U pPeZgIcmUj31NF0m2C/T7AnXuxaoNbub9usmg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=QSNLoRq7qbNX21X/zV/2AlYjV7hEb4BXWVGqbeUJ24g=; b=1uewpUry2R0dFmD5vu5uxJoPILzVpgt9NAiZUlVeBv6utfcJ102o1u37TZHupQRcPV BoreC8vkduT2+QMCEzG7nOwubUL0p97KAGVT2gUuZCMgN1Ok0tbDS/5U6R8iTdY07FOL dMZM3Wq7168VIH0lRyHq9+KovPbnHthHzdhBQ/w7NQT35WByJo3lX5w08Lhqbo7aDSoG kEnQMxYtWfK6kPx/h8HoTXPq/qsh4VKEYCP5qmZII/0vSeYcNSTHr0pexxtAwlCpvB+M UsNAc8CdzlNBIvfIzBpfyJgkNsDT71haRg+w3Yzv6Bd/G2vq8DVsLRvuurlWsHtv4t0T 4vBw== X-Gm-Message-State: AJIora+8qVo30pzJ3/qEoG1yvWMJlvqdtOCZs0DspVN9XNEbGweNxiFo 8pGC1KlLRkGk/F9tqZox+U6MtS8yhTAJVCJGhqI= X-Received: by 2002:a05:6402:64c:b0:43c:ea8e:85d6 with SMTP id u12-20020a056402064c00b0043cea8e85d6mr26939953edx.269.1659540627870; Wed, 03 Aug 2022 08:30:27 -0700 (PDT) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com. [209.85.221.46]) by smtp.gmail.com with ESMTPSA id fv36-20020a17090750a400b0073093eaf53esm2823228ejc.131.2022.08.03.08.30.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 08:30:24 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id l4so22014746wrm.13 for ; Wed, 03 Aug 2022 08:30:22 -0700 (PDT) X-Received: by 2002:a5d:5889:0:b0:21d:bccd:38e3 with SMTP id n9-20020a5d5889000000b0021dbccd38e3mr16118496wrf.659.1659540622383; Wed, 03 Aug 2022 08:30:22 -0700 (PDT) MIME-Version: 1.0 References: <20220803123332.8138-1-johan+linaro@kernel.org> In-Reply-To: <20220803123332.8138-1-johan+linaro@kernel.org> From: Doug Anderson Date: Wed, 3 Aug 2022 08:30:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] phy: qcom: drop regulator loads To: Johan Hovold Cc: Vinod Koul , Andy Gross , Bjorn Andersson , Konrad Dybcio , Kishon Vijay Abraham I , Kuogee Hsieh , Manivannan Sadhasivam , linux-arm-msm , linux-phy@lists.infradead.org, LKML , Dmitry Baryshkov Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 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=unavailable 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 Wed, Aug 3, 2022 at 5:34 AM Johan Hovold wrote: > > Unless a driver implements an idle mode, there's generally no point in > specifying an active-mode regulator load. > > Drop the regulator loads that were recently added to the Qualcomm QMP > combo and edp PHY drivers. > > For a background discussion on this matter, see the following thread: > > https://lore.kernel.org/r/YuPps+cvVAMugWmy@sirena.org.uk > > Johan > > > Johan Hovold (2): > phy: qcom-qmp-combo: drop regulator loads > phy: qcom-edp: drop regulator loads > > drivers/phy/qualcomm/phy-qcom-edp.c | 12 ------- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 40 +++++------------------ > 2 files changed, 9 insertions(+), 43 deletions(-) It's really hard to evaluate this based on the information I have available to me. :( I'm all for getting rid of all this complexity if it was added for no reason and I could definitely believe that on most boards there is no reason for it at all as talked about in other threads. I guess I worry that there is some use case where LPM mode is actually usable to power these devices when they're active. It seems like _maybe_ it could be but only if nothing else is pulling power from the same LDO? Some LDOs on the board I have seem to be able to do LPM up to 30 mA and some of the rails are being specified as ~22mA. The problem with regulator loads is that using them is kinda an "all or nothing". Either all the consumers need to specify something or none of them can. :( This means that once the first user comes in and is able to run the device in LPM (maybe only if they're the only consumer?) that everything will break. I honestly have no idea if this will ever happen, though... Mark said the phrase "actively managing loads it's probably not doing anything useful" and I think "probably" is an important word there. If that word was "never" then it would definitely be OK to remove load management like this, but with "probably" it becomes a lot harder. If we needed a hack, I'd somewhat prefer a hack that just bumps the "mA" value here up to something higher. That would force it to HPM... ...although maybe it still won't work? Then the regulator will still go down to LPM for other consumers if the PHY ever turns off. In that case I guess there's no getting around other consumers requesting the load or finding some way to say that on your board this regulator can only ever be in HPM mode. -Doug