projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdaccfe
)
pinctrl: renesas: Fix DRV register offset
author
Marek Vasut
<
[email protected]
>
Wed, 13 Jun 2018 06:02:55 +0000
(08:02 +0200)
committer
Marek Vasut
<
[email protected]
>
Fri, 2 Nov 2018 14:57:13 +0000
(15:57 +0100)
Use fixed 4bit size for generating the DRV register element mask,
not the size of the value, which can be smaller.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Masahiro Yamada <
[email protected]
>
Cc: Nobuhiro Iwamatsu <
[email protected]
>
drivers/pinctrl/renesas/pfc.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/renesas/pfc.c
b/drivers/pinctrl/renesas/pfc.c
index 90011537a856444863c6f5538c047bc037fa9879..b3a4ff9049d093d00fdf67819700c2ec73c8c587 100644
(file)
--- a/
drivers/pinctrl/renesas/pfc.c
+++ b/
drivers/pinctrl/renesas/pfc.c
@@
-591,7
+591,7
@@
static int sh_pfc_pinconf_set_drive_strength(struct sh_pfc *pfc,
strength = strength / step - 1;
val = sh_pfc_read_raw_reg(reg, 32);
- val &= ~GENMASK(offset +
size
- 1, offset);
+ val &= ~GENMASK(offset +
4
- 1, offset);
val |= strength << offset;
if (unlock_reg)