lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090609160132.31265ffc@lxorguk.ukuu.org.uk>
Date:	Tue, 9 Jun 2009 16:01:32 +0100
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	"Oskar Schirmer" <os@...ix.com>
Cc:	Sascha Hauer <kernel@...gutronix.de>, linux-kernel@...r.kernel.org,
	Fabian Godehardt <fg@...ix.com>, Oskar Schirmer <os@...ix.com>
Subject: Re: [PATCH 8/8] imx: serial: add IrDA support to serial driver

> +#ifdef CONFIG_IRDA
> +#define USE_IRDA(sport)	((sport)->use_irda)
> +#else
> +#define USE_IRDA(sport)	(0)
> +#endif
> +

You define this but only use it in about half the cases ?

> +#ifdef CONFIG_IRDA
> +	if (sport->use_irda) {
> +		/* half duplex - wait for end of transmission */
> +		int n = 256;

Otherwise this series looks sound.

While you are fiddling with the baud rate the driver really should work
out the resulting actual baud rate and call

	tty_encode_baud_rate(tty, in-rate, out-rate);

that will report back the resulting rate and knows how to encode all the
termios fields as well as reporting close values to the requested speed
as the speed requested (eg if you ask for B38400 and it tries to encode
38215 or similar it will encode back B38400)

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ