Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp44093otr; Tue, 2 Aug 2022 15:44:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tP8RV52vkdv4lP3y/ykeycFOcz+ekOZywWLs7bCmLujlnlkl36RY+5ALGn4UBOH3VEiqsX X-Received: by 2002:aa7:d8d1:0:b0:43c:ce93:ff67 with SMTP id k17-20020aa7d8d1000000b0043cce93ff67mr22697625eds.295.1659480257246; Tue, 02 Aug 2022 15:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659480257; cv=none; d=google.com; s=arc-20160816; b=UeGaR2Ot+aCf3y954gvp8FYZJoUvXckDXo8sxtGplp1kFHuvImdFw/vviP0x2DFmFb +H0u/+4CAsh8FM7fZJQ3h3QgcAJnQewzKxy/DcgfOWG+uWYq1C8pX/p9dnA8dtjXvZk4 9Iq89QN6SDyEYbdcNrQo5G68fo/YRVYNIyZIZnec5ZfADiZ74/No3UWmFlKXwEFcACyt FXhunijDuVqu4+Wi0lt699TRkGpVqarTKmpZ1i8tAXEEDZ7MBjVyYLlhvEOebFWpKpQC LQK9Oa6WVgqCTsd6nr9lDXl2KeQuaukn8pjDaZjel3yKh3FiGYceMkHrBoiLdz5nJTGh +Quw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=C3C5nhfQMbZqyCX3pFoZEMov0enNRmYhg5gtHn4KJoo=; b=frHwxFh5QZZAvpe5P5K4MHK/EAp+PxysD1Jk/w/vnFvCIx3D3dQxfT8cr4egsmljE4 T7BAVpzCgsESptSWcyj2VozxQhrWEfuswy1//7RF2ru3o98YMcsyBF4ETRVZ1iA5PB8r FebcSuQgX/hDQupf7DNfttKUG7YLEmsH1POMcON2PnXz7ntRN6dwuxkeORBtVHb7sKWI yz7KOBYBI5R56sH29+Ih04Vad7TsqScIX8t2oU4J0aQ7B5p/a35d/6y1AZnes1NLScs1 OFINKgiKOpyeXL/TlF27vC1IvAAhEEZNlqpWs8UNfQgNuxVJOYezG1nlgQuaaBtQiFQk wFEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cgMuOxAG; 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 ga42-20020a1709070c2a00b0072b5adee783si9514089ejc.523.2022.08.02.15.43.51; Tue, 02 Aug 2022 15:44:17 -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=cgMuOxAG; 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 S234980AbiHBWhu (ORCPT + 99 others); Tue, 2 Aug 2022 18:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbiHBWht (ORCPT ); Tue, 2 Aug 2022 18:37:49 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 858F417A96 for ; Tue, 2 Aug 2022 15:37:48 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id o5-20020a17090a3d4500b001ef76490983so186477pjf.2 for ; Tue, 02 Aug 2022 15:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=C3C5nhfQMbZqyCX3pFoZEMov0enNRmYhg5gtHn4KJoo=; b=cgMuOxAGBnNnnsU1dMszkwZT6TDSBT1fyFTdTVXMp2WP69HDOP1+cbISIj/PAeFz2i JogPs8AQCAxc2Q472v1t/GJdHZWFjvd9sztQ8rjaVBY9zf5Uf3I49l3Q4B2vA38XNP9X wu7IYCegUfcCE3/pe55Ws1bKq7nK9FaTPwpfI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=C3C5nhfQMbZqyCX3pFoZEMov0enNRmYhg5gtHn4KJoo=; b=uGDh4stNKFPr8Fae/AzfiqAGNM93QFFMukIM7Fq4zTIwZYeMzxNmBxR5JJpFtdlFYF 5zST5kNIXFFa5PvfFeKS9c1upor9JV98nKE9b4TtLLrclSsclnplTbQa9yLnCIx+SirY VUy9LA/GyQPWWEtNt5usiOQ0wQeHhwc8Hwg3PTDJHRmRQLhLcwU/HdKcFzEMeeQ8hYDj Mn1cQGqnTAG3bhCsA3oay+Y/qq7IpAZ+Th6tE99pMJW8E3FurA9ZvVIzFVNaPyKQglPf TiGHn/qt7cLahkRlqHoWO+ldobxOS0Gq55En71gqPsakcSI1yy1DzjUhnZiXSu2R0wdk 1dZQ== X-Gm-Message-State: ACgBeo3otr9qARtLSss5Jm6AORSPS/WVES6CQCeLbTaroIaORT9LuhWV +oOxbvHPaja+/EGNT+NxzDdLQA== X-Received: by 2002:a17:902:8508:b0:16c:46ff:53cb with SMTP id bj8-20020a170902850800b0016c46ff53cbmr23246764plb.168.1659479868034; Tue, 02 Aug 2022 15:37:48 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:31c9:9937:c6bb:62f5]) by smtp.gmail.com with ESMTPSA id x185-20020a6263c2000000b00528c066678csm11353030pfb.72.2022.08.02.15.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 15:37:47 -0700 (PDT) From: Douglas Anderson To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov Cc: dri-devel@lists.freedesktop.org, Mark Brown , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Douglas Anderson , AngeloGioacchino Del Regno , Archit Taneja , Bjorn Andersson , Daniel Vetter , David Airlie , Jonathan Marek , =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= , Konrad Dybcio , Loic Poulain , Marijn Suijten , Rajeev Nandan , Sean Paul , Sireesh Kodali , Stephen Boyd , Vinod Koul , Vladimir Lypak , linux-kernel@vger.kernel.org Subject: [PATCH v3 0/6] drm/msm/dsi regulator improvements Date: Tue, 2 Aug 2022 15:37:32 -0700 Message-Id: <20220802223738.898592-1-dianders@chromium.org> X-Mailer: git-send-email 2.37.1.455.g008518b4e5-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The main goal of this series is to make a small dent in cleaning up the way we deal with regulator loads for DSI drivers. As of v3 of this series, the regulator API improvements needed for the later patches in the series are merged into mainline. Thus this series only contains the DSI changes now. I'd expect: * The first two patches are bugfixes found while converting the DSI driver over. Those could land any time. * The third patch ("drm/msm/dsi: Don't set a load before disabling a regulator") is a patch a sent the other day verbatim, included in this series because it's highly related. It could land any time. * The next two patches use the new APIs. Since those APIs are now in mainline those could also land any time. * The last patch is just cleanup I noticed as I was touching the function. It's not really related to regulators but it applies atop these. In theory it could be rebased to land separately. Changes in v3: - ("Improve dsi_phy_driver_probe() probe error handling") new for v3. - Do all the PHYs too. - Fix typo in commit message. - Get rid of error print after devm_regulator_bulk_get_const(). - Just directly call the bulk commands; get rid of the wrapper. - Update commit message to point at the git hash of the regulator change. Changes in v2: - ("Fix number of regulators for SDM660") new for v2. - ("Fix number of regulators for msm8996_dsi_cfg") new for v2. - ("Take advantage of devm_regulator_bulk_get_const") new for v2. - ("Use the new regulator bulk feature to specify the load") new for v2. Douglas Anderson (6): drm/msm/dsi: Fix number of regulators for msm8996_dsi_cfg drm/msm/dsi: Fix number of regulators for SDM660 drm/msm/dsi: Don't set a load before disabling a regulator drm/msm/dsi: Use the new regulator bulk feature to specify the load drm/msm/dsi: Take advantage of devm_regulator_bulk_get_const() drm/msm/dsi: Improve dsi_phy_driver_probe() probe error handling drivers/gpu/drm/msm/dsi/dsi.h | 13 -- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 172 +++++++++--------- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 3 +- drivers/gpu/drm/msm/dsi/dsi_host.c | 96 ++-------- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 160 ++++------------ drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 5 +- drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 20 +- drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 32 ++-- drivers/gpu/drm/msm/dsi/phy/dsi_phy_20nm.c | 14 +- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 28 +-- .../gpu/drm/msm/dsi/phy/dsi_phy_28nm_8960.c | 12 +- drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 32 ++-- 12 files changed, 197 insertions(+), 390 deletions(-) -- 2.37.1.455.g008518b4e5-goog