]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: aspeed: Fix incorrect offset of read back register.
authorBilly Tsai <billy_tsai@aspeedtech.com>
Wed, 13 Apr 2022 05:34:51 +0000 (13:34 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 19 Apr 2022 18:51:11 +0000 (14:51 -0400)
commitfe2f284270718c6cfbe7f87e7e1f378c2b172bf5
treef978403e90cb9db6e94a7e21207cf3a5d409b2d7
parent0b93b7fed6df12ea89b65ef138e724e402587c32
gpio: aspeed: Fix incorrect offset of read back register.

The offset of the current read back register is the value of the gpio pin,
not the value written for the gpio output.
This patch fix it to avoid the other gpio output value controlled by the
same register being set incorrectly.

Fixes: 7ad889b0f37a ("gpio: Add Aspeed GPIO driver")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
drivers/gpio/gpio-aspeed.c