[PATCH v3 12/21] gpio: update dir_flags management

Simon Glass sjg at chromium.org
Thu Jan 30 03:18:12 CET 2020


On Mon, 13 Jan 2020 at 03:35, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> Update the flag management in GPIO uclass: the desc->flags is always
> combined with the requested flags and the GPIO descriptor is updated
> for further call.
>
> Add a function dm_gpio_get_dir_flags to get dynamically
> the current dir_flags (configuration and value).
>
> This patch prepare introduction of the dir flags support with new ops.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> This patch was part of v2 08/14
> = gpio: add ops for configuration with dir flags
>
>
> Changes in v3:
> - Split the previous patch [PATCH v2 08/14] to help review
>
> Changes in v2: None
>
>  drivers/gpio/gpio-uclass.c | 27 +++++++++++++++++++++++++--
>  include/asm-generic/gpio.h | 22 ++++++++++++++++------
>  2 files changed, 41 insertions(+), 8 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list