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

Commit 61f5657c authored by Vitaly Bordug's avatar Vitaly Bordug Committed by Paul Mackerras
Browse files

[PATCH] ppc32 CPM_UART: Fixed break send on SCC



SCC uart sends a break sequence each time it is stopped with the
CPM_CR_STOP_TX command. That means that each time an application closes the
serial device, a break is transmitted. To fix this, graceful tx stop is
issued for SCC.

Signed-off-by: default avatarDavid Jander <david.jander@protonic.nl>
Signed-off-by: default avatarVitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 0ccde0a2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -457,7 +457,11 @@ static void cpm_uart_shutdown(struct uart_port *port)
		}

		/* Shut them really down and reinit buffer descriptors */
		if (IS_SMC(pinfo))
			cpm_line_cr_cmd(line, CPM_CR_STOP_TX);
		else
			cpm_line_cr_cmd(line, CPM_CR_GRA_STOP_TX);

		cpm_uart_initbd(pinfo);
	}
}
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
#define CPM_CR_INIT_TX		((ushort)0x0002)
#define CPM_CR_HUNT_MODE	((ushort)0x0003)
#define CPM_CR_STOP_TX		((ushort)0x0004)
#define CPM_CR_GRA_STOP_TX	((ushort)0x0005)
#define CPM_CR_RESTART_TX	((ushort)0x0006)
#define CPM_CR_CLOSE_RX_BD	((ushort)0x0007)
#define CPM_CR_SET_GADDR	((ushort)0x0008)
+1 −1

File changed.

Contains only whitespace changes.