[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240719094056.1169057-1-phil@zankapfel.net>
Date: Fri, 19 Jul 2024 11:40:56 +0200
From: Phil Eichinger <phil@...kapfel.net>
To: eajames@...ux.ibm.com,
mchehab@...nel.org,
joel@....id.au,
andrew@...econstruct.com.au,
sboyd@...nel.org,
hverkuil-cisco@...all.nl,
jae.hyun.yoo@...ux.intel.com,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Phil Eichinger <phil@...kapfel.net>
Subject: [PATCH] media: aspeed: fix clock stopping logic
When stopping clocks for Video Capture and Video Engine in
aspeed_video_off() the order is reversed.
Occasionally during screen blanking hard lock-ups occur on AST2500,
accompanied by the heart beat LED stopping.
Stopping Video Capture clock before Video Engine seems logical and fixes
the random lock-ups.
Fixes: 3536169f8531 ("media: aspeed: fix clock handling logic")
Signed-off-by: Phil Eichinger <phil@...kapfel.net>
---
drivers/media/platform/aspeed/aspeed-video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/aspeed/aspeed-video.c b/drivers/media/platform/aspeed/aspeed-video.c
index fc6050e3be0d..8f1f3c847162 100644
--- a/drivers/media/platform/aspeed/aspeed-video.c
+++ b/drivers/media/platform/aspeed/aspeed-video.c
@@ -661,8 +661,8 @@ static void aspeed_video_off(struct aspeed_video *video)
aspeed_video_write(video, VE_INTERRUPT_STATUS, 0xffffffff);
/* Turn off the relevant clocks */
- clk_disable(video->eclk);
clk_disable(video->vclk);
+ clk_disable(video->eclk);
clear_bit(VIDEO_CLOCKS_ON, &video->flags);
}
--
2.39.2
Powered by blists - more mailing lists