Re: usb serial: pl2303 driver TxD "break" stays after close() bug

2015-02-20 Thread Jari Ruusu
On 2/20/15, Johan Hovold wrote: > On Thu, Feb 19, 2015 at 03:38:39PM +0200, Jari Ruusu wrote: >> To clear it, you need to poke it with ioctl(fd, TIOCCBRK, 0) >> or disconnect the device. > > That's definitely a bug. > > Care to test the patch below? Your patch

Re: usb serial: pl2303 driver TxD "break" stays after close() bug

2015-02-19 Thread Jari Ruusu
On 2/19/15, Johan Hovold wrote: > What happens when you reopen the port? Is the break state cleared then? Stuck "break" signal is not cleared on re-open. To clear it, you need to poke it with ioctl(fd, TIOCCBRK, 0) or disconnect the device. -- Jari Ruusu 4096R/8132F189 12D6 4

usb serial: pl2303 driver TxD "break" stays after close() bug

2015-02-05 Thread Jari Ruusu
etattr(fd, TCSANOW, &tt); if(ioctl(fd, TIOCSBRK, 0) == -1) { perror("set BRK failed"); exit(1); } close(fd); exit(0); } -- Jari Ruusu 4096R/8132F189 12D6 4C3A DCDA 0AA4 27BD ACDF F073 3C80 8132 F189 -- To unsubscribe from this list: send th