Skip to contentSkip to conversation

clk: tegra: Fix typo in PLLE_MISC VREG_CTRL define

PATCH In review Mikko Perttunen 2 participants 2 messages Jun 6, 2014 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: tegra: Fix typo in PLLE_MISC VREG_CTRL define

The mask of PLLE_MISC_VREG_CTRL was defined to be 2, which clearly cannot be a mask. Documentation shows that the field is 2 bits long, so change this to 3.

---
 drivers/clk/tegra/clk-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/tegra/clk-pll.c +1 -1
index 637b62c..e7f79fa 100644
@@ -116,7 +116,7 @@
 #define PLLE_MISC_VREG_BG_CTRL_SHIFT	4
 #define PLLE_MISC_VREG_BG_CTRL_MASK	(3 << PLLE_MISC_VREG_BG_CTRL_SHIFT)
 #define PLLE_MISC_VREG_CTRL_SHIFT	2
-#define PLLE_MISC_VREG_CTRL_MASK	(2 << PLLE_MISC_VREG_CTRL_SHIFT)
+#define PLLE_MISC_VREG_CTRL_MASK	(3 << PLLE_MISC_VREG_CTRL_SHIFT)
 
 #define PLLCX_MISC_STROBE	BIT(31)
 #define PLLCX_MISC_RESET	BIT(30)
Signature · 1 line
1.8.1.5
#2 lore raw
In reply to a message not in the archive
Quoted 2 lines · Mikko Perttunen

The mask of PLLE_MISC_VREG_CTRL was defined to be 2, which clearly cannot be a mask. Documentation shows that the field

It could be a 1 bit mask :) But yeah, it's incorrect indeed.

Quoted 2 lines

is 2 bits long, so change this to 3.

Cheers,

Peter.