View | Details | Raw Unified | Return to bug 2009
Collapse All | Expand All

(-)linux-2.6.7/drivers/serial/8250.c (-3 / +7 lines)
Lines 470-477 Link Here
470
{
470
{
471
	unsigned char status1, status2;
471
	unsigned char status1, status2;
472
472
473
	up->port.type = PORT_16550A;
474
475
	/*
473
	/*
476
	 * Check for presence of the EFR when DLAB is set.
474
	 * Check for presence of the EFR when DLAB is set.
477
	 * Only ST16C650V1 UARTs pass this test.
475
	 * Only ST16C650V1 UARTs pass this test.
Lines 675-681 Link Here
675
		up->port.type = PORT_16550;
673
		up->port.type = PORT_16550;
676
		break;
674
		break;
677
	case 3:
675
	case 3:
678
		autoconfig_16550a(up);
676
		up->port.type = PORT_16550A;
677
		
678
		/* If this port is a console, probing is likely to damage something, 
679
		 * and we probably would not need this kind of probing anyways, or the
680
		 * console would not work. */
681
		if (!uart_console(&up->port))
682
			autoconfig_16550a(up);
679
		break;
683
		break;
680
	}
684
	}
681
685
(-)linux-2.6.7/drivers/serial/serial_core.c (-6 lines)
Lines 52-63 Link Here
52
52
53
#define uart_users(state)	((state)->count + ((state)->info ? (state)->info->blocked_open : 0))
53
#define uart_users(state)	((state)->count + ((state)->info ? (state)->info->blocked_open : 0))
54
54
55
#ifdef CONFIG_SERIAL_CORE_CONSOLE
56
#define uart_console(port)	((port)->cons && (port)->cons->index == (port)->line)
57
#else
58
#define uart_console(port)	(0)
59
#endif
60
61
static void uart_change_speed(struct uart_state *state, struct termios *old_termios);
55
static void uart_change_speed(struct uart_state *state, struct termios *old_termios);
62
static void uart_wait_until_sent(struct tty_struct *tty, int timeout);
56
static void uart_wait_until_sent(struct tty_struct *tty, int timeout);
63
static void uart_change_pm(struct uart_state *state, int pm_state);
57
static void uart_change_pm(struct uart_state *state, int pm_state);
(-)linux-2.6.7/include/linux/serial_core.h (+6 lines)
Lines 325-330 Link Here
325
		     int parity, int bits, int flow);
325
		     int parity, int bits, int flow);
326
struct tty_driver *uart_console_device(struct console *co, int *index);
326
struct tty_driver *uart_console_device(struct console *co, int *index);
327
327
328
#ifdef CONFIG_SERIAL_CORE_CONSOLE
329
#define uart_console(port)	((port)->cons && (port)->cons->index == (port)->line)
330
#else
331
#define uart_console(port)	(0)
332
#endif
333
328
/*
334
/*
329
 * Port/driver registration/removal
335
 * Port/driver registration/removal
330
 */
336
 */

Return to bug 2009