linux/drivers/serial
David Gibson abb4a23907 serial: define FIXED_PORT flag for serial_core
At present, the serial core always allows setserial in userspace to change the
port address, irq and base clock of any serial port.  That makes sense for
legacy ISA ports, but not for (say) embedded ns16550 compatible serial ports
at peculiar addresses.  In these cases, the kernel code configuring the ports
must know exactly where they are, and their clocking arrangements (which can
be unusual on embedded boards).  It doesn't make sense for userspace to change
these settings.

Therefore, this patch defines a UPF_FIXED_PORT flag for the uart_port
structure.  If this flag is set when the serial port is configured, any
attempts to alter the port's type, io address, irq or base clock with
setserial are ignored.

In addition this patch uses the new flag for on-chip serial ports probed in
arch/powerpc/kernel/legacy_serial.c, and for other hard-wired serial ports
probed by drivers/serial/of_serial.c.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:50 -07:00
..
cpm_uart
jsm
8250_accent.c
8250_acorn.c
8250_au1x00.c
8250_boca.c
8250_early.c
8250_exar_st16c554.c
8250_fourport.c
8250_gsc.c
8250_hp300.c
8250_hub6.c
8250_mca.c
8250_pci.c
8250_pnp.c
8250.c RM9000 serial driver 2007-05-07 12:12:50 -07:00
8250.h
21285.c
68328serial.c
68328serial.h
68360serial.c
amba-pl010.c
amba-pl011.c
atmel_serial.c
atmel_serial.h
clps711x.c
crisv10.c
crisv10.h
dz.c
dz.h
icom.c
icom.h
imx.c
ioc3_serial.c
ioc4_serial.c
ip22zilog.c
ip22zilog.h
Kconfig RM9000 serial driver 2007-05-07 12:12:50 -07:00
m32r_sio_reg.h
m32r_sio.c
m32r_sio.h
Makefile
mcfserial.c
mcfserial.h
mpc52xx_uart.c
mpsc.c
mux.c
netx-serial.c
of_serial.c serial: define FIXED_PORT flag for serial_core 2007-05-07 12:12:50 -07:00
pmac_zilog.c
pmac_zilog.h
pnx8xxx_uart.c
pxa.c
s3c2410.c
sa1100.c
serial_core.c serial: define FIXED_PORT flag for serial_core 2007-05-07 12:12:50 -07:00
serial_cs.c
serial_lh7a40x.c
serial_txx9.c
sh-sci.c
sh-sci.h
sn_console.c
suncore.c
suncore.h
sunhv.c
sunsab.c
sunsab.h
sunsu.c
sunzilog.c
sunzilog.h
uartlite.c
v850e_uart.c
vr41xx_siu.c