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 12C702C68F; Sat, 3 Feb 2024 04:19:37 +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=1706933977; cv=none; b=FvC3Rl6vrAmJS0t0kK+zTm5JftqhUWV9js0l3mlYvxR1tokfM68xnwM8nqLWNeQ05Acu8T98zjkq9eBHN+r5o306MLviRxrSwOdRk1tlPb901mOeeltP5fViYywpc6hztlDFVWJ/srmnVYmN+1F+PlMZsltv+Ki/FfHl4n5hcTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706933977; c=relaxed/simple; bh=Y/iqyeduF/wT9yJE/zgI2pfrp4lHKNj0HS2I0L1S89w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PrPOBbaY+a+RxGsP3NeCGORITTzIsEnFXO0ZAoQ/zrn0+2i+9C0kL5I8FgEqwcj7vyaDyai/cfeSCnKTc1aWqmA8CBSN+oBambqt7PJxL9J7b/g8eBm8t+oBUtxE8Cy+JQrWHnzDHj9KsGJIvM32EOYfsFPhPfrlsCcq0m/pxpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tcUW9mFU; 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="tcUW9mFU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D16C6C433F1; Sat, 3 Feb 2024 04:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706933976; bh=Y/iqyeduF/wT9yJE/zgI2pfrp4lHKNj0HS2I0L1S89w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tcUW9mFU+OLLE6jxevz6AnDV7wqwIqJrKFiB+lWJMkjzLE8D5CiTm3/L6HD0u/0Mm YwaVyCpNesLjTJ1q9ZpmOcfsND3RRYcmSw6CRjaiC2ZMcFzBuwW/zcgNnTxRnqB5S+ rhW+HLgUXQI8k8rTl/kg6uYhfgbvNeWJcic/e7Vo= 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.7 351/353] drm/msm/dsi: Enable runtime PM Date: Fri, 2 Feb 2024 20:07:49 -0800 Message-ID: <20240203035414.849590003@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203035403.657508530@linuxfoundation.org> References: <20240203035403.657508530@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.7-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 @@ -691,6 +691,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. */