projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8deca39
)
gpio: Fix inverted rdc321x gpio data out registers
author
Florian Fainelli
<florian@openwrt.org>
Sun, 16 May 2010 10:02:18 +0000
(12:02 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 27 May 2010 23:37:59 +0000
(
01:37
+0200)
rdc_gpio_set_value_impl has the gpio data registers 1 and 2 inverted, fix this.
Signed-off-by: Bernhard Loos <bernhardloos@gmail.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/rdc321x-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/rdc321x-gpio.c
b/drivers/gpio/rdc321x-gpio.c
index 22f31dc50104caff5ae7710bfaf8298eec321388..2762698e0204adc99699839137680bafc7fcc0c7 100644
(file)
--- a/
drivers/gpio/rdc321x-gpio.c
+++ b/
drivers/gpio/rdc321x-gpio.c
@@
-73,7
+73,7
@@
static void rdc_gpio_set_value_impl(struct gpio_chip *chip,
gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
pci_write_config_dword(gpch->sb_pdev,
- reg ? gpch->reg
1_data_base : gpch->reg2
_data_base,
+ reg ? gpch->reg
2_data_base : gpch->reg1
_data_base,
gpch->data_reg[reg]);
}