Skip to content

Commit

Permalink
serial: omap: fix rs485 probe on defered pinctrl
Browse files Browse the repository at this point in the history
If the gpio is not yet available we better also
defer the probing in the rs485 case.

Signed-off-by: Michael Grzeschik <[email protected]>
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
mgrzeschik authored and gregkh committed Feb 13, 2014
1 parent 13b949f commit a64c1a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,8 +1601,11 @@ static int serial_omap_probe_rs485(struct uart_omap_port *up,
flags & SER_RS485_RTS_AFTER_SEND);
if (ret < 0)
return ret;
} else
} else if (up->rts_gpio == -EPROBE_DEFER) {
return -EPROBE_DEFER;
} else {
up->rts_gpio = -EINVAL;
}

if (of_property_read_u32_array(np, "rs485-rts-delay",
rs485_delay, 2) == 0) {
Expand Down

0 comments on commit a64c1a1

Please sign in to comment.