Re: [PATCH v2] tty: serial: cpm_uart: Fix behaviour for non existing GPIOs

2020-06-20 Thread Linus Walleij
On Fri, Jun 12, 2020 at 8:26 PM Christophe Leroy wrote: > devm_gpiod_get_index() doesn't return NULL but -ENOENT when the > requested GPIO doesn't exist, leading to the following messages: > > [2.742468] gpiod_direction_input: invalid GPIO (errorpointer) > [2.748147] can't set direction

[PATCH v2] tty: serial: cpm_uart: Fix behaviour for non existing GPIOs

2020-06-12 Thread Christophe Leroy
devm_gpiod_get_index() doesn't return NULL but -ENOENT when the requested GPIO doesn't exist, leading to the following messages: [2.742468] gpiod_direction_input: invalid GPIO (errorpointer) [2.748147] can't set direction for gpio #2: -2 [2.753081] gpiod_direction_input: invalid GPIO