Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 300047 | Differences between
and this patch

Collapse All | Expand All

(-)ltmodem.orig/v8250.c (-4 / +4 lines)
Lines 178-184 Link Here
178
static void
178
static void
179
receive_chars(struct vuart_8250_port *up, unsigned int *status)
179
receive_chars(struct vuart_8250_port *up, unsigned int *status)
180
{
180
{
181
	struct tty_struct *tty = up->port.info->port.tty;
181
	struct tty_struct *tty = up->port.state->port.tty;
182
	unsigned char ch, lsr = *status;
182
	unsigned char ch, lsr = *status;
183
	int max_count = 256;
183
	int max_count = 256;
184
	char flag;
184
	char flag;
Lines 240-246 Link Here
240
240
241
static void transmit_chars(struct vuart_8250_port *up)
241
static void transmit_chars(struct vuart_8250_port *up)
242
{
242
{
243
	struct circ_buf *xmit = &up->port.info->xmit;
243
	struct circ_buf *xmit = &up->port.state->xmit;
244
	int count;
244
	int count;
245
245
246
	if (up->port.x_char) {
246
	if (up->port.x_char) {
Lines 281-287 Link Here
281
	unsigned int status = serial_in(up, UART_MSR);
281
	unsigned int status = serial_in(up, UART_MSR);
282
282
283
	if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && 
283
	if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && 
284
	    up->port.info != NULL) {
284
	    up->port.state != NULL) {
285
		if (status & UART_MSR_TERI)
285
		if (status & UART_MSR_TERI)
286
			up->port.icount.rng++;
286
			up->port.icount.rng++;
287
		if (status & UART_MSR_DDSR)
287
		if (status & UART_MSR_DDSR)
Lines 291-297 Link Here
291
		if (status & UART_MSR_DCTS)
291
		if (status & UART_MSR_DCTS)
292
			uart_handle_cts_change(&up->port, status & UART_MSR_CTS);
292
			uart_handle_cts_change(&up->port, status & UART_MSR_CTS);
293
293
294
		wake_up_interruptible(&up->port.info->delta_msr_wait);
294
		wake_up_interruptible(&up->port.state->port.delta_msr_wait);
295
	}
295
	}
296
296
297
	return status;
297
	return status;

Return to bug 300047