Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7694930rwd; Tue, 20 Jun 2023 05:08:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pfoTXU3CuAJHtWo0cPfFo7BeIZTpSAu/McZZMARDaCTpsuwkQ/Wq5S453z3NDKZJJfaAa X-Received: by 2002:a05:6a00:158f:b0:667:e17e:85c1 with SMTP id u15-20020a056a00158f00b00667e17e85c1mr5702570pfk.1.1687262902840; Tue, 20 Jun 2023 05:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687262902; cv=none; d=google.com; s=arc-20160816; b=FksUbmBlh6RQgubQ0FOZV6LdgO3z0fo06pK8tLPSjcnI+ci+XqoPoTjaHPQ9Qtx9br Y/ajAX1XM+NPD7DVaJn4LtC3IcVHiZRisngdzHuE8AszE+wmELdEvozWMuoNezlLDWtu wJHkjE+bigHyEC67l25KSqWF82wZ0GG5bKoCstxwuvx32foUthcCJi5OnHo9cHls25C8 28ZzhktJvgALhEUDfhzi/wvx6S+N0QibFwmpShZoI2rV6QMMz5XgUKqUK++dAzEp/cKm IeN5CvZi4oUviYHrlTF/CbBrcLkfhFFXny52H7pQ6NLWt4UT5jxP35dAkZbZKpMHY6eC yo0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=yFjVYI1irYbFocslsO72gB812nuEuRnfPK62Pbok9EI=; b=TmPjUwACn3+NI9gtBE9ADTLdrd5FFdppPJx2J3ijYe3aI54+P9EHzm+AQw2tBGbDzm 57utExmSVEhupSd4fcrlCN5EThO85nHfJzh1asX4VTeG1aKMeCAoqaFjz81w/O6ETXqJ A+gCUfxqbklLEUaRsLrC1jHi+osz2yA+6OW70e1Op6dM51qm8nwoKHSiZO/baYuf8bi8 /i9r8HytG2xxAixYVLOqfq2HrKlqlaAzCuu6+A0Ktmw+njEyWKvWoA6bOp3MYRfR/y0p /RCMcCVUkUHcGitfDvgERoSkCxiBA++6oidiFO8k6y2A1yuJJOZNM5oXW1UbVebo+fbn qnog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XrLh4GtE; 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 a23-20020aa79717000000b006687fb6650csi1518772pfg.217.2023.06.20.05.08.08; Tue, 20 Jun 2023 05:08:22 -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=XrLh4GtE; 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 S231225AbjFTLnk (ORCPT + 99 others); Tue, 20 Jun 2023 07:43:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbjFTLna (ORCPT ); Tue, 20 Jun 2023 07:43:30 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F89C1713 for ; Tue, 20 Jun 2023 04:43:29 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f866a3d8e4so4068823e87.0 for ; Tue, 20 Jun 2023 04:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687261407; x=1689853407; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=yFjVYI1irYbFocslsO72gB812nuEuRnfPK62Pbok9EI=; b=XrLh4GtEgxMgS393kJtNt5OQY0aDhepU5WL09MdOh1LQOK3Oqi1HUyGdV2/Zq3Hs/V EkVP/iYzcHMeN5Vc4O0UrLNrp7scbfHeRTCxP2jBDBiwjslhDzlEeXTocH4J80ewj2fZ w4VEiWUGm2zvXlnimoWvD9WGDr4d2Ar0uB/8aVQ3hGUjiUiv/AJsD8bx7uF1ElMPYCWT DeORGnLHQ7L6TH0WqAVRfM0qTDo5Bz7WPwEiwLr+9m55wwS5chqny3z0si7MPMe7rNLc 650MSRPhll89NUc2DCwQD8fSElv5dyZSk3H1RExZAvsTFecGbaCxx2bjML8e5RrOKkdk dy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687261407; x=1689853407; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yFjVYI1irYbFocslsO72gB812nuEuRnfPK62Pbok9EI=; b=XxEWTdNAFRC2M+CNzfjAtOhmr4BL+FPZgUy2Q4VZdrBRLpWEA8ReFc39LUO8p0KBy+ vImGbpuAUVzW5BRdkyPr5ZxOZsq8eRA2ha/XBGwDGNVxfEzxP4GJmF4lr7DHwdofOr0E 7dC83wMGXaK6WQeQbWKHXPES0NJAUuc/AAZg2TaubTS8bIpcj/GfWjkJ93y2dIqswtLr sqAdsElrWjVGDyExX+Mgvq97jslzNt+8IT5Yz8fEOdKBaAGJUJQ/3Pwn/Fy3yiFpzrOt HTutMXbHx9hVC86hLm/nRKm3hpsz/w+1FKRKqmKhfN5PnUzw0r9TNaXRj+9xfwp7IqRi hXxA== X-Gm-Message-State: AC+VfDxH4IqR1zVjvSwLuOJyEWjedA2LOPKKK6ItpW9Axl98Km2my5EW vXHjILYe7VpWpg66IDOo2COKyw== X-Received: by 2002:a19:7b02:0:b0:4f6:1b45:e8aa with SMTP id w2-20020a197b02000000b004f61b45e8aamr7160691lfc.50.1687261407277; Tue, 20 Jun 2023 04:43:27 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id v17-20020ac25591000000b004f640b0fb04sm324158lfg.212.2023.06.20.04.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 04:43:26 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH v2 0/2] DSIPHY RPM Date: Tue, 20 Jun 2023 13:43:19 +0200 Message-Id: <20230620-topic-dsiphy_rpm-v2-0-a11a751f34f0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANeQkWQC/32NQQqDMBAAv1JybkqMQUtP/UeRsklWXbBJ2Fipi H9v6gN6nIFhNpGRCbO4nTbBuFCmGAro80m4EcKAknxhoZWuVaOVnGMiJ32mNK5PTi+JYK5Va8E DWFEyCxmlZQhuLGF4T1ORibGnz/F5dIVHynPk9dgu1c/+OSyVVNKYBtreK4emvk8UgOMl8iC6f d+/fu/i+MYAAAA= To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687261406; l=831; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=FulnHTQVR5IFvYXocwRssbKvCfyBHt3fJGnSrpxUdHU=; b=RwTKpnvDySD7/pCybHeBMO9p+5NXfvNwuLdf4wG8fFac/2KFlHw/l9iCggnqrz+o9+fnosUEP i1M5ashWbOJDihGRvlR96hGHAgOFSGt6TUoJauT2lplP1ORUVca6mJi X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Some recent SoCs use power rails that we model as GENPDs to power the DSIPHY. This series attempts to make such configurations suspendable. Tested on SM6375. Signed-off-by: Konrad Dybcio --- Changes in v2: - Improve patch 1 commit message - Add return value checking in patch 1 - Link to v1: https://lore.kernel.org/r/20230620-topic-dsiphy_rpm-v1-0-446a7fd0ce43@linaro.org --- Konrad Dybcio (2): drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks drm/msm/dsi: Enable runtime PM drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- base-commit: 9dbf40840551df336c95ce2a3adbdd25ed53c0ef change-id: 20230620-topic-dsiphy_rpm-ea4817badaab Best regards, -- Konrad Dybcio