Skip to contentSkip to conversation

Patch "clk: qoriq: fix a register offset error" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Oct 29, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

clk: qoriq: fix a register offset error

to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
clk-qoriq-fix-a-register-offset-error.patch
and it can be found in the queue-4.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 8964193f6bfda5c4cf14eedb7e94892c1f1c34f0 Mon Sep 17 00:00:00 2001

From: Tang Yuantian <[email protected]>
Date: Mon, 15 Aug 2016 15:28:20 +0800
Subject: clk: qoriq: fix a register offset error

From: Tang Yuantian <[email protected]>

commit 8964193f6bfda5c4cf14eedb7e94892c1f1c34f0 upstream.

The offset of Core Cluster clock control/status register on cluster group V3 version is different from others, and should be plus 0x70000.

Fixes 9e19ca2f627e ("clk: qoriq: Add ls2080a support.")
---
 drivers/clk/clk-qoriq.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/clk/clk-qoriq.c +5 -1
@@ -766,7 +766,11 @@ static struct clk * __init create_one_cm
 	if (!hwc)
 		return NULL;
 
-	hwc->reg = cg->regs + 0x20 * idx;
+	if (cg->info.flags & CG_VER3)
+		hwc->reg = cg->regs + 0x70000 + 0x20 * idx;
+	else
+		hwc->reg = cg->regs + 0x20 * idx;
+
 	hwc->info = cg->info.cmux_groups[cg->info.cmux_to_group[idx]];
 
 	/*

Patches currently in stable-queue which might be from [email protected] are

queue-4.8/clk-qoriq-fix-a-register-offset-error.patch