Re: Re: [PATCH] tty: fix flush_to_ldisc() oops before tty_open is done

2017-11-05 Thread taoyuhong
Hi Greg >How is things crashing on startup when you are messing with data being sent on >shutdown? >Are you still sending data at startup time? Yes, I always sending data at startup. Actually I keep sending "reboot" to serial port, all the time, no break, regardless of any response from system.

答复: 答复: [PATCH] tty: fix flush_to_ldisc() oops before tty_open is done

2017-10-27 Thread taoyuhong
Hi Gerg > Because of this text, I am not allowed to respond to your emails, sorry :( That is my fault! Please let me re-send these message. > This feels "odd", are we sure that open really should be clearning this flag? Because the pty devices also use tty_init_dev(), to create tty_struct , and

[PATCH] tty: fix flush_to_ldisc() oops before tty_open is done

2017-10-24 Thread taoyuhong
From: Yuhong Tao When tty_open() is opening a serial tty at the first time, after alloc_tty_struct() is called, before tty->ops->open() is finished. Serial driever like pl011 on ARM is ready to setup kworker threads to receive data with flush_to_ldisc(). Serial input at this time window can trigg