Re: GPIO-driven RTS on TI hardware with 8250_omap driver

From: ÐÐÑÑÑ ÐÐÑÐÐÐÐ
Date: Mon Feb 08 2016 - 02:36:00 EST


Hello,

2016-01-16 2:55 GMT+03:00 Peter Hurley <peter@xxxxxxxxxxxxxxxxxx>:
> Please use the helpers in serial_mctrl_gpio.c if you try this.
>
> And please build on top of Matwey's patches, as those will likely be
> the rs485 implementation for the 8250_omap driver soon.

As far as I understand, since em485 callbacks are invoked by timers,
the code is to be executed in atomic context. However certain GPIO
controllers (particularly the OMAP-based one which is used on our
AM335x) require the use of the gpio_*_cansleep() functions, and cannot
work with the atomic-friendly non-cansleep ones. Do the aforementioned
helpers in serial_mctrl_gpio.c address this issue?

Regards,
Ilyas G.