Re: [BISECTED] - multiport braiboxes serial card broken between 4.8 and 4.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I noticed You've submitted the first one, but not this one, do you plan
to submit it as well? (after needed tweaks?) or do you want me to submit
it?

this one works OK for me:

diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index c8dde56..86443f6 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -1144,6 +1144,10 @@ static int uart_do_autoconfig(struct tty_struct *tty,struct uart_state *state)
 		uport->ops->config_port(uport, flags);
 
 		ret = uart_startup(tty, state, 1);
+
+		if (ret == 0)
+			tty_port_set_initialized(port, true);
+
 		if (ret > 0)
 			ret = 0;
 	}

cheers

nik


On Wed, Jan 31, 2018 at 10:52:49AM +0100, Sebastian Andrzej Siewior wrote:
> This looks like my crash before the patch. Does this hunk make a
> difference?
> 
> diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
> index 7e7e6eb95b0a..a15b5171c2ca 100644
> --- a/drivers/tty/serial/serial_core.c
> +++ b/drivers/tty/serial/serial_core.c
> @@ -1144,6 +1144,8 @@ static int uart_do_autoconfig(struct tty_struct *tty,struct uart_state *state)
>  		uport->ops->config_port(uport, flags);
>  
>  		ret = uart_startup(tty, state, 1);
> +		if (retval == 0)
> +			tty_port_set_initialized(port, true);
>  		if (ret > 0)
>  			ret = 0;
>  	}
> > 
> > cheers
> > 
> > nik
> 
> Sebastian
> 

-- 
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 00 Ostrava

tel.:   +420 591 166 214
fax:    +420 596 621 273
mobil:  +420 777 093 799

www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis@xxxxxxxxxxx
-------------------------------------

Attachment: pgpAeszDO9osA.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux