[PATCH tty-next v3 4/6] serial: 8250: Specify console context for rs485_start/stop_tx
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Fri Oct 25 07:04:17 PDT 2024
On Fri, Oct 25, 2024 at 01:03:26PM +0206, John Ogness wrote:
> For RS485 mode, if SER_RS485_RX_DURING_TX is not available, the
> console write callback needs to enable/disable TX. It does this
> by calling the rs485_start/stop_tx() callbacks. However, these
It would be nice if you be consistent across the commit messages and also
provide the names of the callbacks in full, because I dunno if we have a local
stop_tx() or rs485_start() or whatever the above means.
If it is "the rs485_start_tx() / rs485_stop_tx() callbacks.", it's
much clearer for the reader.
> callbacks will disable/enable interrupts, which is a problem
toggle?
> for console write, as it must be responsible for
> disabling/enabling interrupts.
toggling ?
> Add an argument @in_con to the rs485_start/stop_tx() callbacks
As per above.
> to specify if they are being called from console write. If so,
> the callbacks will not handle interrupt disabling/enabling.
toggling ?
> For all call sites other than console write, there is no
> functional change.
So, why not call the parameter better to emphasize that it's about IRQ
toggling? bool toggle_irq ?
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list