projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d19d2de
)
gpio: mt7621: add BGPIOF_NO_SET_ON_INPUT flag
author
Chuanhong Guo
<gch981213@gmail.com>
Sun, 15 Mar 2020 12:13:38 +0000
(20:13 +0800)
committer
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Wed, 25 Mar 2020 08:50:45 +0000
(09:50 +0100)
DSET/DCLR registers only works on output pins. Add corresponding
BGPIOF_NO_SET_ON_INPUT flag to bgpio_init call to fix direction_out
behavior.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Tested-by: René van Dorst <opensource@vdorst.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mt7621.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mt7621.c
b/drivers/gpio/gpio-mt7621.c
index
b992321
..
82fb20d
100644
(file)
--- a/
drivers/gpio/gpio-mt7621.c
+++ b/
drivers/gpio/gpio-mt7621.c
@@
-227,8
+227,8
@@
mediatek_gpio_bank_probe(struct device *dev,
ctrl = mtk->base + GPIO_REG_DCLR + (rg->bank * GPIO_BANK_STRIDE);
diro = mtk->base + GPIO_REG_CTRL + (rg->bank * GPIO_BANK_STRIDE);
- ret = bgpio_init(&rg->chip, dev, 4,
-
dat, set, ctrl, diro, NULL, 0
);
+ ret = bgpio_init(&rg->chip, dev, 4,
dat, set, ctrl, diro, NULL,
+
BGPIOF_NO_SET_ON_INPUT
);
if (ret) {
dev_err(dev, "bgpio_init() failed\n");
return ret;