The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] media: aspeed: fix clock stopping logic
@ 2024-07-19  9:40 Phil Eichinger
  2024-08-08  7:16 ` Hans Verkuil
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Eichinger @ 2024-07-19  9:40 UTC (permalink / raw)
  To: eajames, mchehab, joel, andrew, sboyd, hverkuil-cisco,
	jae.hyun.yoo, linux-media, linux-kernel
  Cc: Phil Eichinger

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@zankapfel.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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-16  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19  9:40 [PATCH] media: aspeed: fix clock stopping logic Phil Eichinger
2024-08-08  7:16 ` Hans Verkuil
2024-08-12  8:05   ` Jammy Huang
2024-08-16  8:12     ` Phil Eichinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox