]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: loongson: Fix Loongson-2K2000 ACPI GPIO register offset
authorBinbin Zhou <zhoubinbin@loongson.cn>
Tue, 7 Jan 2025 10:38:56 +0000 (18:38 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 8 Jan 2025 08:54:20 +0000 (09:54 +0100)
commite59f4c97172de0c302894cfd5616161c1f0c4d85
treec327805a04a9a78ca86248fcf41eac3b80f6da38
parent8bd76b3d3f3af7ac2898b6a27ad90c444fec418f
gpio: loongson: Fix Loongson-2K2000 ACPI GPIO register offset

Since commit 3feb70a61740 ("gpio: loongson: add more gpio chip
support"), the Loongson-2K2000 GPIO is supported.

However, according to the firmware development specification, the
Loongson-2K2000 ACPI GPIO register offsets in the driver do not match
the register base addresses in the firmware, resulting in the registers
not being accessed properly.

Now, we fix it to ensure the GPIO function works properly.

Cc: stable@vger.kernel.org
Cc: Yinbo Zhu <zhuyinbo@loongson.cn>
Fixes: 3feb70a61740 ("gpio: loongson: add more gpio chip support")
Co-developed-by: Hongliang Wang <wanghongliang@loongson.cn>
Signed-off-by: Hongliang Wang <wanghongliang@loongson.cn>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://lore.kernel.org/r/20250107103856.1037222-1-zhoubinbin@loongson.cn
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-loongson-64bit.c