GPIO-driven RTS on TI hardware with 8250_omap driver

Ильяс Гасанов torso.nafi at gmail.com
Sun Feb 7 23:35:55 PST 2016


Hello,

2016-01-16 2:55 GMT+03:00 Peter Hurley <peter at hurleysoftware.com>:
> 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.



More information about the linux-arm-kernel mailing list