gpio: tps68470: Make tps68470_gpio_output() always set the initial value
stable inclusion from stable-v5.10.190 commit 3069fc0326b823c5595cb066d2cc8b3b00c09f15 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3069fc0326b823c5595cb066d2cc8b3b00c09f15 -------------------------------- [ Upstream commit 5a7adc6c ] Make tps68470_gpio_output() call tps68470_gpio_set() for output-only pins too, so that the initial value passed to gpiod_direction_output() is honored for these pins too. Fixes: 275b13a6 ("gpio: Add support for TPS68470 GPIOs") Reviewed-by:Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by:
Daniel Scally <dan.scally@ideasonboard.com> Tested-by:
Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by:
Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Signed-off-by:
Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment