I am revising some kernel code for AM3356 uart1 support. The code has been changed to adapt it to our board.
I see in the code calls a call to gpio_direction_output() to set direction &value for some GPIO.
In the DTS file for uart1 the processor pin is configured as an uart1 RTS (rtsn) pin. It is not configured as GPIO (mode 7).
Is it legal to call to gpio_direction_output() while the pin is configured to be not a GPIO ? Does it make any change on the RTS signal of uart1?
It looks like a mistake in the code, but I want to be sure before fixing the code