Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eda6e6f8 authored by Graf Yang's avatar Graf Yang Committed by David S. Miller
Browse files

net/irda: bfin_sir: IRDA is not affected by anomaly 05000230



Anomaly 05000230 (over sampling of the UART STOP bit) applies only when
the peripheral is operating in UART mode.  So drop the anomaly handling
in the IRDA code.

Signed-off-by: default avatarGraf Yang <graf.yang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e487639d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -107,8 +107,12 @@ static int bfin_sir_set_speed(struct bfin_sir_port *port, int speed)
	case 57600:
	case 115200:

		quot = (port->clk + (8 * speed)) / (16 * speed)\
						- ANOMALY_05000230;
		/*
		 * IRDA is not affected by anomaly 05000230, so there is no
		 * need to tweak the divisor like he UART driver (which will
		 * slightly speed up the baud rate on us).
		 */
		quot = (port->clk + (8 * speed)) / (16 * speed);

		do {
			udelay(utime);