linux/drivers/serial
Anton Vorontsov 24d481ecae 8250: Now honours baud rate lower bounds
A platform clock drives 8250 ports in most SOC systems, the clock
might run at high frequencies, and so it's not always possible to
downscale uart clock to a desired value.

Currently the 8250 uart driver accepts not supported baud rates, and
what is worse, it is doing this silently, and then passes not accepted
values to a new termios, so userspace has no chance to catch this kind
of errors (userspace verifies that settings were accepted by reading
back and comparing the settings).

This patch fixes the issue by passing minimum baud rate to the
uart_get_baud_rate() call, the call should take care of all bounds,
so userspace should now report:

  # stty -F /dev/ttyS0 speed 300
  115200
  stty: /dev/ttyS0: unable to perform all requested operations

p.s. uart_get_baud_rate() falls back to 9600, which still might be too
     low for some 10 GHz platforms, but that's a separate issue, and
     we can wait with fixing this till we find such a platform.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-19 13:13:20 -07:00
..
cpm_uart cpm_uart: Don't use alloc_bootmem in cpm_uart_cpm2.c 2009-07-29 23:22:23 -05:00
jsm jsm: clean up "serial: jsm: correctly support 4 8 port boards" 2009-06-24 09:55:50 -07:00
8250.c 8250: Now honours baud rate lower bounds 2009-09-19 13:13:20 -07:00
8250.h serial: 8250: add IRQ trigger support 2009-09-19 13:13:19 -07:00
8250_accent.c
8250_acorn.c
8250_boca.c
8250_early.c
8250_exar_st16c554.c
8250_fourport.c
8250_gsc.c serial: 8250_gsc: fix printk format error 2009-05-29 08:40:02 -07:00
8250_hp300.c
8250_hub6.c
8250_mca.c
8250_pci.c Remove multiple KERN_ prefixes from printk formats 2009-07-08 10:30:03 -07:00
8250_pnp.c
21285.c
68328serial.c
68328serial.h
68360serial.c
Kconfig Merge branch 'master' into devel 2009-09-12 12:04:37 +01:00
Makefile ARM: S5PC100: UART and Serial 2009-08-16 23:24:37 +01:00
amba-pl010.c [ARM] 5544/1: Trust PrimeCell resource sizes 2009-06-11 15:36:56 +01:00
amba-pl011.c ARM: 5626/1: add suspend/resume functions to amba-pl011 serial driver 2009-09-02 11:21:15 +01:00
atmel_serial.c drivers/serial/atmel_serial.c: fix compile when CONFIG_SERIAL_ATMEL=Y and CONFIG_SERIAL_ATMEL_CONSOLE=N 2009-07-29 19:10:37 -07:00
bfin_5xx.c serial: bfin_5xx: fix building as module when early printk is enabled 2009-09-19 13:13:09 -07:00
bfin_sport_uart.c drivers/serial/bfin_sport_uart.c: remove wrong and unneeded memset 2009-07-16 09:19:16 -07:00
bfin_sport_uart.h
clps711x.c
crisv10.c
crisv10.h
dz.c
dz.h
icom.c tty: icom: bit and/or confusion? 2009-09-19 13:13:11 -07:00
icom.h
imx.c i.MX serial: do not use #ifdef CONFIG_ARCH_* 2009-08-07 12:10:53 +02:00
ioc3_serial.c
ioc4_serial.c [IA64] ioc4_serial: fix printk format warnings 2009-09-15 08:42:47 -07:00
ip22zilog.c
ip22zilog.h
kgdboc.c
m32r_sio.c
m32r_sio.h
m32r_sio_reg.h
max3100.c
mcf.c
mpc52xx_uart.c powerpc/5xxx: Add common mpc5xxx_get_bus_frequency() function 2009-06-17 00:30:22 -06:00
mpsc.c
msm_serial.c serial: don't add msm_serial's probe function to the driver struct 2009-07-16 09:19:16 -07:00
msm_serial.h msm_serial: serial driver for MSM7K onboard serial peripheral. 2009-06-22 11:32:25 -07:00
mux.c
netx-serial.c
nwpserial.c serial/nwpserial: Fix wrong register read address and add interrupt acknowledge. 2009-05-15 16:43:42 +10:00
of_serial.c Merge commit 'origin/master' into next 2009-06-18 11:16:55 +10:00
pmac_zilog.c
pmac_zilog.h
pnx8xxx_uart.c
pxa.c
s3c24a0.c ARM: S3C24XX: serial: Fix section mismatch warnings 2009-07-30 23:56:41 +01:00
s3c2400.c ARM: S3C24XX: serial: Fix section mismatch warnings 2009-07-30 23:56:41 +01:00
s3c2410.c ARM: S3C24XX: serial: Fix section mismatch warnings 2009-07-30 23:56:41 +01:00
s3c2412.c ARM: S3C24XX: serial: Fix section mismatch warnings 2009-07-30 23:56:41 +01:00
s3c2440.c ARM: S3C24XX: serial: Fix section mismatch warnings 2009-07-30 23:56:41 +01:00
s3c6400.c ARM: S3C64XX: serial: Fix section mismatch warning 2009-07-30 23:56:41 +01:00
sa1100.c
samsung.c serial: samsung.c: mark s3c24xx_serial_remove as __devexit 2009-06-22 11:32:24 -07:00
samsung.h serial: samsung.c: mark s3c24xx_serial_remove as __devexit 2009-06-22 11:32:24 -07:00
sb1250-duart.c serial: fix off by one errors 2009-06-22 11:32:23 -07:00
sc26xx.c
serial_core.c
serial_cs.c tty: serial/pcmcia: add ID for Advantech card 2009-09-19 13:13:10 -07:00
serial_ks8695.c ARM: 5688/1: ks8695_serial: disable_irq() lockup 2009-09-02 17:22:44 +01:00
serial_lh7a40x.c
serial_txx9.c kgdb: kgdboc console poll hooks for serial_txx9 uart 2009-06-24 09:55:50 -07:00
sh-sci.c sh: Add initial support for SH7757 CPU subtype 2009-08-21 17:25:47 +09:00
sh-sci.h sh: Add initial support for SH7757 CPU subtype 2009-08-21 17:25:47 +09:00
sn_console.c
suncore.c
suncore.h
sunhv.c serial: fix off by one errors 2009-06-22 11:32:23 -07:00
sunsab.c
sunsab.h
sunsu.c
sunzilog.c
sunzilog.h
timbuart.c timbuart: Fix for tx_empty 2009-06-22 11:32:25 -07:00
timbuart.h serial: Added Timberdale UART driver 2009-06-11 08:51:06 -07:00
uartlite.c
ucc_uart.c serial: Make ucc_uart work in HW UART mode 2009-06-15 21:45:31 -05:00
vr41xx_siu.c Update Yoichi Yuasa's e-mail address 2009-07-03 15:45:29 +01:00
zs.c serial: fix off by one errors 2009-06-22 11:32:23 -07:00
zs.h