I’m working on a platform where we’re using some very high-speed serial devices, and the inter-block spacing is in the tens of milliseconds. I’d like to use VTIME but unfortunately it measures time in 100ms intervals, which is useless at higher speeds (115200baud means 1440 characters every VTIME tick). That’s a long time. I’d like to propose an extension, but wanted to ask the maintainers first about the feasibility before I spend too much time on it. Not sure which bits in c_cflag are safe to use without stepping on CIBAUD. Also, CFASTTICK only works if CONFIG_HZ is 100, 200, 300, 500, or 1000. Not sure which drivers/tty/tty_ioctl.c function to enforce this check… tty_mode_ioctl() perhaps? Anyway, this is what I have so far. Am I on the right track? Thanks, -Philip
Attachment:
fasttick.patch
Description: Binary data