[Sound-open-firmware] [PATCH] Fix timer on CNL.

yan.wang at linux.intel.com yan.wang at linux.intel.com
Fri Mar 9 08:27:29 CET 2018


From: Yan Wang <yan.wang at linux.intel.com>

Work queue cannot work rightly because it uses wrong timer setting.
Based on Keyon's comments, use SSP CLK intead of CPU CLK.
It is confirmed on my CNL platform.

Signed-off-by: Yan Wang <yan.wang at linux.intel.com>
---
 src/platform/cannonlake/platform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/platform/cannonlake/platform.c b/src/platform/cannonlake/platform.c
index c49dcb8..c9449ed 100644
--- a/src/platform/cannonlake/platform.c
+++ b/src/platform/cannonlake/platform.c
@@ -129,8 +129,8 @@ static struct work_queue_timesource platform_generic_queue = {
 		.id = TIMER3, /* external timer */
 		.irq = IRQ_EXT_TSTAMP0_LVL2(0),
 	},
-	.clk		= CLK_CPU,
-	.notifier	= NOTIFIER_ID_CPU_FREQ,
+	.clk		= CLK_SSP,
+	.notifier	= NOTIFIER_ID_SSP_FREQ,
 	.timer_set	= platform_timer_set,
 	.timer_clear	= platform_timer_clear,
 	.timer_get	= platform_timer_get,
-- 
2.14.3



More information about the Sound-open-firmware mailing list