From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 193A910A2E; Sat, 3 Feb 2024 04:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706933474; cv=none; b=sz9v5LVlC7hhd1ecqKrEt93aBr2EsxOJpBhZPMdEcMV4lHWb8HVnPvsMJ9j7TDpPg8ba0EOqTCT4uVUk0VmoRhY6+N+Ew032j07HV6jkHBkTbphSyBBm76BttaS3uQdt9w+wiKbqdLAOvMBdkZk/N1MVgXwSBfixc59VnOBMlWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706933474; c=relaxed/simple; bh=97ZtYiJVCMCKYS6SwLOaksSXnbEgH5CXLx/mEZQ2jFY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UnqNWJwGnoju5vStBuKO+WyAnqxeq5Y7ymlGj4EsEh7MUUzDaSbRqXqiUkQGkGy1X+kayVE8eJOTPtQij0pGjVU+BTL233KHktcgB8FRT09Ldx505YXgx+iZ8GDZbaYBOg+bG/SIWCjqFilH/O8DC9jUCQshtJe4MJVjZsz40wQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DBaVaWf8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DBaVaWf8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 958AEC43390; Sat, 3 Feb 2024 04:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706933473; bh=97ZtYiJVCMCKYS6SwLOaksSXnbEgH5CXLx/mEZQ2jFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DBaVaWf8D6XOob2I/sEspk5lsRfzJMCvckpJNyEk9G9j6Iec+F8JJzrLpmM9hViI1 BL9IMqlqBg0jIc7aKIjcA+9R0xux63/zBYtloa3dYN9Ds0zqOdlXz6nsidz5kfrVpU mIu8UYqgfBYEDNxOlIf3BzAOWHi9Ebm7ukOsGKIA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Konrad Dybcio , Dmitry Baryshkov , Amit Pundir Subject: [PATCH 6.1 216/219] drm/msm/dsi: Enable runtime PM Date: Fri, 2 Feb 2024 20:06:29 -0800 Message-ID: <20240203035347.035269790@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203035317.354186483@linuxfoundation.org> References: <20240203035317.354186483@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Konrad Dybcio commit 6ab502bc1cf3147ea1d8540d04b83a7a4cb6d1f1 upstream. Some devices power the DSI PHY/PLL through a power rail that we model as a GENPD. Enable runtime PM to make it suspendable. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/543352/ Link: https://lore.kernel.org/r/20230620-topic-dsiphy_rpm-v2-2-a11a751f34f0@linaro.org Signed-off-by: Dmitry Baryshkov Signed-off-by: Amit Pundir Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c @@ -673,6 +673,10 @@ static int dsi_phy_driver_probe(struct p return dev_err_probe(dev, PTR_ERR(phy->ahb_clk), "Unable to get ahb clk\n"); + ret = devm_pm_runtime_enable(&pdev->dev); + if (ret) + return ret; + /* PLL init will call into clk_register which requires * register access, so we need to enable power and ahb clock. */