tty driver fixes to get init working properly