mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
gpio: mt7621: add BGPIOF_NO_SET_ON_INPUT flag
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>
This commit is contained in:
parent
d19d2de61f
commit
427cabede0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user