]> git.baikalelectronics.ru Git - uboot.git/commit
arm64: a37xx: pinctrl: Fix gpio pin offset in register
authorKen Ma <make@marvell.com>
Mon, 26 Mar 2018 07:56:02 +0000 (15:56 +0800)
committerStefan Roese <sr@denx.de>
Fri, 30 Mar 2018 10:52:48 +0000 (12:52 +0200)
commitf079bbf99fa34df10e8ca58479715681813ad72e
treecd6f97659fb081b935b9fae1e0f65f08feb5b854
parent279a0dc10395f0eb79643d11762fbfa7a72c41e6
arm64: a37xx: pinctrl: Fix gpio pin offset in register

For armada_37xx_update_reg(), the parameter offset should be pointer so
that it can be updated, otherwise offset will keep old value, and then
when offset is larger than or equal to 32 the mask calculated by
"BIT(offset)" will be 0 in gpio chip hook functions, it's an error,
this patch set offset parameter of armada_37xx_update_reg() as pointer.

Reviewed-on: http://vgitil04.il.marvell.com:8080/43287
Reviewed-by: Hua Jing <jinghua@marvell.com>
Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Ken Ma <make@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c