Skip to content

Commit 72f3795

Browse files
AaronDotBartosz Golaszewski
authored andcommitted
gpio: loongson-64bit: Correct Loongson-7A2000 ACPI GPIO access mode
According to the description of the Loongson-7A2000 ACPI GPIO register in the manual, its access mode should be BIT_CTRL_MODE, otherwise there maybe some unpredictable behavior. Cc: [email protected] Fixes: 44fe790 ("gpio: loongson-64bit: Add more gpio chip support") Signed-off-by: Binbin Zhou <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e0d4a0f commit 72f3795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-loongson-64bit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static const struct loongson_gpio_chip_data loongson_gpio_ls7a2000_data0 = {
268268
/* LS7A2000 ACPI GPIO */
269269
static const struct loongson_gpio_chip_data loongson_gpio_ls7a2000_data1 = {
270270
.label = "ls7a2000_gpio",
271-
.mode = BYTE_CTRL_MODE,
271+
.mode = BIT_CTRL_MODE,
272272
.conf_offset = 0x4,
273273
.in_offset = 0x8,
274274
.out_offset = 0x0,

0 commit comments

Comments
 (0)