tty: some fixes
Merge branch 'upstream' of https://github.com/AuxXxilium/kernel_caf into upstream