]> git.baikalelectronics.ru Git - uboot.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)
commitcf9b0139f4664445143ac3e45335d9758c14cbe7
treef978403e90cb9db6e94a7e21207cf3a5d409b2d7
parentc008dea9e6f144100c82f831cf7fc0bbe7079bc1
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: 652d1d299a3c ("gpio: Add Aspeed GPIO driver")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
drivers/gpio/gpio-aspeed.c