On Tue, Mar 14, 2023 at 09:00:01AM +0200, Jarkko Sonninen wrote:
Add support for RS-485 in Exar USB adapters.And the difference between previous versions? Take a look at the
RS-485 mode is controlled by TIOCGRS485 and TIOCSRS485 ioctls.
Gpio mode register is set to enable RS-485.
Signed-off-by: Jarkko Sonninen <kasper@xxxxxx>
---
In this version only rs485.flags are stored to state.
There is no locking as only one bit of the flags is used.
ioctl returns -ENOIOCTLCMD as the actual error handling is in tty code.
documentation for how to better describe version differences please.
+ memset(&rs485, 0, sizeof(rs485));But you just copied this from userspace, why zero it out again? Is that
to be expected (I really don't remember, sorry).
Anyway, just minor comments, I'll let others review it as well.
thanks,
greg k-h