Skip to contentSkip to conversation

linux: regulator: pca9450.h: Correct register masks for LDOs

PATCH In review André Werner 2 participants 3 messages Jan 6, 2022 1 message not in the archive Voltage and current regulator framework

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 linux: regulator: pca9450.h: Correct register masks for LDOs

From 6dda12150785665ddd1059d53aa22bf902bfe4aa Mon Sep 17 00:00:00 2001
From: Andre Werner <[email protected]>
Date: Mon, 22 Nov 2021 15:40:17 +0100
Subject: [PATCH] linux: regulator: pca9450.h: Correct register masks for LDOs

Within the defines of the register masks for LDO3 and LDO4, the most significant bit was missing. The datasheet said the range is 4:0 bits. Thus, the output voltage cannot be set above 1.7V for each.

---
include/linux/regulator/pca9450.h | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/regulator/pca9450.h +0 -0
index 71902f41c919..0c3edff6bdff 100644
@@ -196,11 +196,11 @@ enum {

/* PCA9450_REG_LDO3_VOLT bits */
#define LDO3_EN_MASK 0xC0
-#define LDO3OUT_MASK 0x0F
+#define LDO3OUT_MASK 0x1F
/* PCA9450_REG_LDO4_VOLT bits */
#define LDO4_EN_MASK 0xC0
-#define LDO4OUT_MASK 0x0F
+#define LDO4OUT_MASK 0x1F
/* PCA9450_REG_LDO5_VOLT bits */
#define LDO5L_EN_MASK 0xC0

Signature · 1 line
2.31.1
maintainer
#2 lore raw
Quoted 10 lines · André Werner

From 6dda12150785665ddd1059d53aa22bf902bfe4aa Mon Sep 17 00:00:00 2001
From: Andre Werner <[email protected]>
Date: Mon, 22 Nov 2021 15:40:17 +0100
Subject: [PATCH] linux: regulator: pca9450.h: Correct register masks for LDOs

Within the defines of the register masks for LDO3 and LDO4, the most significant bit was missing. The datasheet said the range is 4:0 bits. Thus, the output voltage cannot be set above 1.7V for each.

Please submit patches using subject lines and a format reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.

maintainer
#3 lore raw
In reply to a message not in the archive
Quoted 4 lines · Andre Werner

Within the defines of the register masks for LDO3 and LDO4, the most significant bit was missing. The datasheet said the range is 4:0 bits. Thus, the output voltage cannot be set above 1.7V for each.

Actually this doesn't apply against current code:

Applying: regulator: pca9450.h: Correct register masks for LDOs Using index info to reconstruct a base tree...
error: patch failed: include/linux/regulator/pca9450.h:196
error: include/linux/regulator/pca9450.h: patch does not apply
error: Did you hand edit your patch?
It does not apply to blobs recorded in its index.

Please check and resend - I suspect it'd been mangled by your mail software.