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

A message that is not in the archive (sent off-list or not yet received): 1402041968-21525-1-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org

#2 lore raw
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.