mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
Use built-in Meson DRM driver (#1347)
It seems that the crash of the Meson DRM driver on shutdown can also be fixed by compiling it in. The driver is also built-in in LibreELEC, hence this is better tested by the upstream community. Note the underlying issue seems to be a disabled clock: Since the introduction of meson_drv_shutdown some registers are touched at a very late stage. Those clock get disabled in meson_ee_pwrc_shutdown. It seems that when the driver is built-in, meson_drv_shutdown gets called before meson_ee_pwrc_shutdown and hence sidesteps the problem. Note: This increases the kernel by a bit since DRM needs to be built-in as well. Configure some less common used file systems as modules (ext3/NFS).
This commit is contained in:
parent
3d793dc7ef
commit
5ac85a4c45
File diff suppressed because it is too large
Load Diff
@ -1,47 +0,0 @@
|
|||||||
From a58cdfdb13d2728a7fc826cead1b29eacbffa453 Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <a58cdfdb13d2728a7fc826cead1b29eacbffa453.1619651621.git.stefan@agner.ch>
|
|
||||||
In-Reply-To: <bcbcd8967de78638e5b861ceb9caa73da003280a.1619651621.git.stefan@agner.ch>
|
|
||||||
References: <bcbcd8967de78638e5b861ceb9caa73da003280a.1619651621.git.stefan@agner.ch>
|
|
||||||
From: Stefan Agner <stefan@agner.ch>
|
|
||||||
Date: Thu, 29 Apr 2021 01:04:32 +0200
|
|
||||||
Subject: [PATCH 5/5] Revert "drm: meson_drv add shutdown function"
|
|
||||||
|
|
||||||
This reverts commit d4ec1ffbdaa8939a208656e9c1440742c457ef16.
|
|
||||||
|
|
||||||
It seems that this patch actually breaks reboot on ODROID-N2+.
|
|
||||||
---
|
|
||||||
drivers/gpu/drm/meson/meson_drv.c | 11 -----------
|
|
||||||
1 file changed, 11 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
|
|
||||||
index db56732bdd26..3d1de9cbb1c8 100644
|
|
||||||
--- a/drivers/gpu/drm/meson/meson_drv.c
|
|
||||||
+++ b/drivers/gpu/drm/meson/meson_drv.c
|
|
||||||
@@ -482,16 +482,6 @@ static int meson_probe_remote(struct platform_device *pdev,
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
-static void meson_drv_shutdown(struct platform_device *pdev)
|
|
||||||
-{
|
|
||||||
- struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
|
|
||||||
- struct drm_device *drm = priv->drm;
|
|
||||||
-
|
|
||||||
- DRM_DEBUG_DRIVER("\n");
|
|
||||||
- drm_kms_helper_poll_fini(drm);
|
|
||||||
- drm_atomic_helper_shutdown(drm);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
static int meson_drv_probe(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
struct component_match *match = NULL;
|
|
||||||
@@ -563,7 +553,6 @@ static const struct dev_pm_ops meson_drv_pm_ops = {
|
|
||||||
|
|
||||||
static struct platform_driver meson_drm_platform_driver = {
|
|
||||||
.probe = meson_drv_probe,
|
|
||||||
- .shutdown = meson_drv_shutdown,
|
|
||||||
.driver = {
|
|
||||||
.name = "meson-drm",
|
|
||||||
.of_match_table = dt_match,
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user