linux/drivers/serial
Atsushi Nemoto 9c0f4755bd [SERIAL] initialize spinlock for port failed to setup console
It seems serial_core intend to initialize port->lock just once for each
ports.  This is done in uart_set_options() for console, and in
uart_add_one_port() for other ports.  But there is a case the port->lock is
not initialized by serial_core.  If the setup function for the console was
failed, it will not call uart_set_options() but the port is marked as
console (uart_console(port) returns 1).  It can happen if console was PCI
port which can not detected at the time of register_console.

This patch is to initialize port->lock for such console port.  With this
change, most of spin_lock_init() (some of them are labeled "Temporary
fix.") in low-level serial drivers can be omitted.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-02-02 20:53:39 +00:00
..
cpm_uart [PATCH] ppc32: cpm_uart: fix xchar sending 2006-01-09 15:44:26 +11:00
jsm [PATCH] jsm: fix for high baud rates problem 2006-02-01 08:53:14 -08:00
8250_accent.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_acorn.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250_acpi.c [ACPI] ACPICA 20050930 2005-12-10 00:20:25 -05:00
8250_au1x00.c [SERIAL] Support Au1x00 8250 UARTs using the generic 8250 driver. 2005-11-06 09:07:03 +00:00
8250_boca.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_early.c [SERIAL] 8250_early.c passing 0 instead of NULL 2005-11-03 21:07:37 +00:00
8250_fourport.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_gsc.c [PARISC] Fix mux.c driver 2005-10-21 22:58:03 -04:00
8250_hp300.c [PATCH] Serial: Convert 8250_hp300 to use serial8250_{un,}register_port 2005-04-26 15:37:45 +01:00
8250_hub6.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_mca.c [SERIAL] Use an enum for serial8250 platform device IDs 2005-09-08 16:04:41 +01:00
8250_pci.c [SERIAL] SIIG 8-port serial boards support 2006-02-02 20:15:09 +00:00
8250_pnp.c [SERIAL] Claim Wacom tablet device on HP tc1100 tablet 2005-11-12 22:06:31 +00:00
8250.c [SERIAL] Remove UPF_AUTOPROBE and UPF_BOOT_ONLYMCA 2006-01-21 20:06:14 +00:00
8250.h [SERIAL] Remove _INLINE_ 2006-01-04 19:43:24 +00:00
21285.c [SERIAL] Don't use ASYNC_ constants with the uart_port structure 2006-01-21 19:28:15 +00:00
68328serial.c [PATCH] remove unused tmp_buf_sem's 2006-01-14 10:41:42 -08:00
68328serial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
68360serial.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
amba-pl010.c [SERIAL] Don't use ASYNC_ constants with the uart_port structure 2006-01-21 19:28:15 +00:00
amba-pl011.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
at91_serial.c [ARM] 3268/1: AT91RM9200 serial update for 2.6.15-git12 2006-01-18 22:38:46 +00:00
au1x00_uart.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
clps711x.c [SERIAL] Don't use ASYNC_ constants with the uart_port structure 2006-01-21 19:28:15 +00:00
crisv10.c [SERIAL] turn serial semaphores into mutexes 2006-01-12 18:44:32 +00:00
crisv10.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dz.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
dz.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
icom.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
icom.h [PATCH] serial/icom: Remove custom msescs_to_jiffies() macro 2005-06-25 16:25:01 -07:00
imx.c Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-01-31 11:31:54 -08:00
ioc3_serial.c [PATCH] Altix: ioc3 serial support 2006-01-14 18:25:20 -08:00
ioc4_serial.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
ip22zilog.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
ip22zilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [SERIAL] 8250 Documentation fix 2006-01-23 09:50:09 +00:00
m32r_sio_reg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m32r_sio.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
m32r_sio.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] Altix: ioc3 serial support 2006-01-14 18:25:20 -08:00
mcfserial.c [PATCH] m68knommu: set irq priority/level different for each ColdFire serial port 2006-01-10 09:31:27 -08:00
mcfserial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpc52xx_uart.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
mpsc.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
mpsc.h [PATCH] ppc annotations: mpsc 2005-04-25 18:32:12 -07:00
mux.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
pmac_zilog.c [SERIAL] convert uart_state.sem to uart_state.mutex 2006-01-13 21:37:07 +00:00
pmac_zilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pxa.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
s3c2410.c [ARM] 3266/1: S3C2400 - adds macro S3C24XX 2006-01-26 15:20:50 +00:00
sa1100.c [SERIAL] Don't use ASYNC_ constants with the uart_port structure 2006-01-21 19:28:15 +00:00
serial_core.c [SERIAL] initialize spinlock for port failed to setup console 2006-02-02 20:53:39 +00:00
serial_cs.c [PATCH] pcmcia: add new IDs for serial_cs.c 2006-01-12 18:48:15 +01:00
serial_lh7a40x.c [SERIAL] Don't use ASYNC_ constants with the uart_port structure 2006-01-21 19:28:15 +00:00
serial_txx9.c [SERIAL] turn serial semaphores into mutexes 2006-01-12 18:44:32 +00:00
sh-sci.c [PATCH] sh: sh-sci clock framework updates 2006-02-01 08:53:20 -08:00
sh-sci.h [PATCH] sh: sh-sci clock framework updates 2006-02-01 08:53:20 -08:00
sn_console.c [IA64-SGI] sn_console.c minor cleanup 2006-01-17 13:54:41 -08:00
suncore.c [SPARC64]: Serial Console for E250 Patch 2006-01-18 14:54:31 -08:00
suncore.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunsab.c [SPARC64]: Serial Console for E250 Patch 2006-01-18 14:54:31 -08:00
sunsab.h [SUNSAB]: Defer register updates until transmitter is idle. 2005-05-11 11:34:32 -07:00
sunsu.c [SERIAL] Don't use ASYNC_ constants with the uart_port structure 2006-01-21 19:28:15 +00:00
sunzilog.c [PATCH] TTY layer buffering revamp 2006-01-10 08:01:59 -08:00
sunzilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
v850e_uart.c [SERIAL] Clean up and fix tty transmission start/stoping 2005-08-31 10:12:14 +01:00
vr41xx_siu.c Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2006-01-10 09:00:55 -08:00