linux/drivers
Uwe Kleine-König 5289f1ce39 serial: mxs-auart: Fix baudrate calculation
commit a6040bc610 upstream.

The reference manual for the i.MX28 recommends to calculate the divisor
as

	divisor = (UARTCLK * 32) / baud rate, rounded to the nearest integer

, so let's do this. For a typical setup of UARTCLK = 24 MHz and baud
rate = 115200 this changes the divisor from 6666 to 6667 and so the
actual baud rate improves from 115211.521 Bd (error ≅ 0.01 %) to
115194.240 Bd (error ≅ 0.005 %).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-04-08 09:30:34 +02:00
..
accessibility printk: move braille console support into separate braille.[ch] files 2013-07-31 14:41:03 -07:00
acpi ACPI: Do not create a platform_device for IOAPIC/IOxAPIC 2017-04-08 09:30:34 +02:00
amba ARM: 8596/1: amba: Support clk parents and rates assigned in DT 2016-08-12 16:47:07 +01:00
android ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct 2016-10-24 19:37:48 +02:00
ata libata: Fix ATA request sense 2017-02-09 08:08:27 +01:00
atm atm: fix improper return value 2016-12-05 14:53:46 -05:00
auxdisplay auxdisplay: img-ascii-lcd: add missing sentinel entry in img_ascii_lcd_matches 2017-03-30 09:41:27 +02:00
base base/memory, hotplug: fix a kernel oops in show_valid_zones() 2017-02-09 08:08:28 +01:00
bcma bcma: use (get|put)_device when probing/removing device driver 2017-03-12 06:41:52 +01:00
block loop: fix LO_FLAGS_PARTSCAN hang 2017-03-12 06:41:45 +01:00
bluetooth Bluetooth: Add another AR3012 04ca:3018 device 2017-03-15 10:02:40 +08:00
bus bus: vexpress-config: fix device reference leak 2017-01-19 20:18:07 +01:00
cdrom cdrom: support read sub-channel command in LBA format 2016-07-12 08:24:50 -07:00
char hwrng: geode - Revert managed API changes 2017-03-30 09:41:26 +02:00
clk clk: sunxi-ng: mp: Adjust parent rate for pre-dividers 2017-03-30 09:41:26 +02:00
clocksource clocksource/exynos_mct: Clear interrupt when cpu is shut down 2017-01-26 08:24:40 +01:00
connector connector: make cn_proc explicitly non-modular 2016-07-05 11:40:47 -07:00
cpufreq cpufreq: Restore policy min/max limits on CPU online 2017-03-30 09:41:27 +02:00
cpuidle Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2016-10-15 09:26:12 -07:00
crypto crypto: ccp - Assign DMA commands to the channel's CCP 2017-03-30 09:41:26 +02:00
dax device-dax: fix pmd/pte fault fallback handling 2017-03-30 09:41:27 +02:00
dca dmaengine: ioatdma: constify dca_ops structures 2015-11-16 09:27:32 +05:30
devfreq PM / devfreq: Fix wrong trans_stat of passive devfreq device 2017-03-12 06:41:44 +01:00
dio m68k: don't export static inline functions 2009-12-06 11:18:28 +01:00
dma dmaengine: iota: ioat_alloc_chan_resources should not perform sleeping allocations. 2017-03-22 12:43:35 +01:00
dma-buf Merge tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux 2016-10-11 18:12:22 -07:00
edac * Altera Arria10 enablement of NAND, DMA, USB, QSPI and SD-MMC FIFO 2016-10-04 12:06:26 -07:00
eisa Revert "EISA: Initialize device before its resources" 2014-01-17 14:57:29 -07:00
extcon extcon: return error code on failure 2017-01-19 20:18:03 +01:00
firewire firewire: net: fix fragmented datagram_size off-by-one 2016-11-03 14:46:39 +01:00
firmware efi/arm: Fix boot crash with CONFIG_CPUMASK_OFFSTACK=y 2017-03-18 19:14:29 +08:00
fmc Merge 3.14-rc5 into char-misc-next 2014-03-02 19:53:09 -08:00
fpga fpga manager: Add hardware dependency to Zynq driver 2016-09-08 17:31:44 +02:00
gpio gpio: Move freeing of GPIO hogs before numbing of the device 2017-01-19 20:18:00 +01:00
gpu drm: reference count event->completion 2017-03-30 09:41:28 +02:00
hid HID: wacom: Don't add ghost interface as shared data 2017-04-08 09:30:33 +02:00
hsi HSI: omap_ssi: drop pm_runtime_irq_safe 2016-06-28 00:40:08 +02:00
hv Drivers: hv: vmbus: Don't leak memory when a channel is rescinded 2017-03-30 09:41:27 +02:00
hwmon hwmon: (it87) Ensure that pwm control cache is current before updating values 2017-03-12 06:41:42 +01:00
hwspinlock hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle 2016-07-06 12:20:34 -07:00
hwtracing intel_th: Don't leak module refcount on failure to activate 2017-03-30 09:41:27 +02:00
i2c i2c: add missing of_node_put in i2c_mux_del_adapters 2017-03-18 19:14:30 +08:00
ide Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide 2016-07-29 13:29:06 -07:00
idle nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
iio iio: magnetometer: ak8974: remove incorrect __exit markups 2017-03-30 09:41:25 +02:00
infiniband IB/mlx5: Verify that Q counters are supported 2017-03-18 19:14:35 +08:00
input Input: sur40 - validate number of endpoints before using them 2017-03-30 09:41:23 +02:00
iommu iommu/vt-d: Fix NULL pointer dereference in device_to_iommu 2017-03-30 09:41:26 +02:00
ipack ipack: print a hex number after a 0x prefix 2016-10-27 18:43:43 -07:00
irqchip irqchip/gicv3-its: Add workaround for QDF2400 ITS erratum 0065 2017-03-22 12:43:39 +01:00
isdn isdn/gigaset: fix NULL-deref at probe 2017-03-26 13:05:58 +02:00
leds leds: triggers: Check return value of kobject_uevent_env() 2016-09-20 10:22:10 +02:00
lguest Merge branch 'x86/urgent' into x86/asm to pick up dependent fixes 2016-04-13 11:36:44 +02:00
lightnvm Merge branch 'for-4.9/block' of git://git.kernel.dk/linux-block 2016-10-07 14:42:05 -07:00
macintosh powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
mailbox mailbox: PCC: Fix lockdep warning when request PCC channel 2016-11-14 22:07:38 +01:00
mcb mcb: Add a dma_device to mcb_device 2016-09-27 12:33:47 +02:00
md md/raid1/10: fix potential deadlock 2017-03-26 13:05:57 +02:00
media uvcvideo: uvc_scan_fallback() for webcams with broken chain 2017-03-22 12:43:38 +01:00
memory memory/atmel-ebi: Fix ns <-> cycles conversions 2017-03-15 10:02:45 +08:00
memstick memstick: rtsx_usb_ms: Manage runtime PM when accessing the device 2016-10-17 15:43:05 +02:00
message scsi: fusion: Fix error return code in mptfc_probe() 2016-09-14 14:26:19 -04:00
mfd mfd: tps65217: Fix page fault on unloading modules 2017-01-12 11:39:23 +01:00
misc cxl: fix nested locking hang during EEH hotplug 2017-03-15 10:02:42 +08:00
mmc mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection 2017-04-08 09:30:33 +02:00
mtd mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy 2017-03-18 19:14:28 +08:00
net mwifiex: pcie: don't leak DMA buffers when removing 2017-03-30 09:41:26 +02:00
nfc mei: bus: fix received data size check in NFC fixup 2016-10-31 10:25:22 -06:00
ntb ntb_transport: Pick an unused queue 2017-02-23 17:44:36 +01:00
nubus nubus: Remove superfluous interrupt disable/restore 2014-10-27 11:03:19 +01:00
nvdimm nfit, libnvdimm: fix interleave set cookie calculation 2017-03-15 10:02:47 +08:00
nvme nvme: apply DELAY_BEFORE_CHK_RDY quirk at probe time too 2017-01-19 20:18:05 +01:00
nvmem ARM: SoC driver updates for v4.9 2016-10-07 21:23:40 -07:00
of of, numa: Return NUMA_NO_NODE from disable of_node_to_nid() if nid not possible. 2017-01-09 08:32:25 +01:00
oprofile Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-10 20:16:43 -07:00
parisc dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
parport parport: fix attempt to write duplicate procfiles 2017-03-30 09:41:25 +02:00
pci PCI: iproc: Save host bridge window resource in struct iproc_pcie 2017-04-08 09:30:33 +02:00
pcmcia pcmcia: fix return value of soc_pcmcia_regulator_set 2016-11-11 08:45:08 -08:00
perf perf: xgene: Remove bogus IS_ERR() check 2016-10-17 15:50:07 +01:00
phy phy: twl4030-usb: Fix for musb session bit based PM 2016-11-17 16:25:40 +01:00
pinctrl pinctrl: qcom: Don't clear status bit on irq_unmask 2017-03-31 10:31:45 +02:00
platform goldfish: Sanitize the broken interrupt handler 2017-02-26 11:10:52 +01:00
pnp PNP: isapnp: make core more explicitly non-modular 2016-08-16 22:53:59 +02:00
power power: reset: at91-poweroff: timely shutdown LPDDR memories 2017-03-12 06:41:45 +01:00
powercap powercap/intel_rapl: fix and tidy up error handling 2017-01-19 20:18:07 +01:00
pps pps: kc: fix non-tickless system config dependency 2016-10-11 15:06:32 -07:00
ps3 powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ptp drivers/ptp: Fix kernel memory disclosure 2016-10-13 10:20:06 -04:00
pwm pwm: pca9685: Fix period change with same duty cycle 2017-03-15 10:02:46 +08:00
rapidio mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
ras x86/ras: Move AMD MCE injector to arch/x86/ras/ 2015-08-13 10:12:54 +02:00
regulator regulator: Fix regulator_summary for deviceless consumers 2017-03-12 06:41:43 +01:00
remoteproc remoteproc: qcom: mdt_loader: Don't overwrite firmware object 2017-03-12 06:41:50 +01:00
reset reset: uniphier: rename MIO reset to SD reset for Pro5, PXs2, LD20 SoCs 2016-10-22 18:31:42 +09:00
rpmsg rpmsg: virtio_rpmsg_bus: fix channel creation 2017-01-26 08:24:44 +01:00
rtc rtc: sun6i: Switch to the external oscillator 2017-03-12 06:41:52 +01:00
s390 s390/zcrypt: Introduce CEX6 toleration 2017-03-22 12:43:38 +01:00
sbus openprom: fix warning 2016-05-20 18:33:37 -07:00
scsi scsi: scsi_dh_alua: Ensure that alua_activate() calls the completion function 2017-04-08 09:30:33 +02:00
sfi SFI: fix compiler warnings 2014-12-03 18:49:20 -05:00
sh drivers: sh: Stop using the legacy clock domain on ARM 2016-05-30 09:41:11 +09:00
sn Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
soc soc: ti: wkup_m3_ipc: Fix error return code in wkup_m3_ipc_probe() 2017-01-26 08:24:45 +01:00
spi spi: s3c64xx: fix inconsistency between binding and driver 2017-03-12 06:41:41 +01:00
spmi spmi: pmic-arb: Return an error code if sanity check fails 2016-09-27 12:43:34 +02:00
ssb ssb: Fix error routine when fallback SPROM fails 2017-01-09 08:32:16 +01:00
staging staging: rtl: fix possible NULL pointer dereference 2017-03-12 06:41:42 +01:00
target target: Fix VERIFY_16 handling in sbc_parse_cdb 2017-03-26 13:05:58 +02:00
tc TC: Error handling clean-ups 2014-11-24 07:45:25 +01:00
thermal thermal: hwmon: Properly report critical temperature in sysfs 2017-01-09 08:32:18 +01:00
thunderbolt thunderbolt: Don't declare Falcon Ridge unsupported 2016-08-31 13:25:02 +02:00
tty serial: mxs-auart: Fix baudrate calculation 2017-04-08 09:30:34 +02:00
uio uio: fix dmem_region_start computation 2016-08-31 13:07:30 +02:00
usb USB: fix linked-list corruption in rh_call_control() 2017-04-08 09:30:34 +02:00
uwb uwb: hwa-rc: fix NULL-deref at probe 2017-03-30 09:41:24 +02:00
vfio vfio/spapr: Postpone default window creation 2017-03-22 12:43:38 +01:00
vhost vhost: fix initialization for vq->is_le 2017-02-09 08:08:28 +01:00
video fbcon: Fix vc attr at deinit 2017-03-30 09:41:28 +02:00
virt mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
virtio virtio_balloon: init 1st buffer in stats vq 2017-03-31 10:31:45 +02:00
vlynq drivers/vlynq/vlynq.c: fix another resource size off by 1 error 2014-01-23 16:36:55 -08:00
vme VME: restore bus_remove function causing incomplete module unload 2017-03-12 06:41:50 +01:00
w1 w1: ds2490: USB transfer buffers need to be DMAable 2017-03-12 06:41:48 +01:00
watchdog watchdog: qcom: fix kernel panic due to external abort on non-linefetch 2017-01-06 10:40:16 +01:00
xen xen/acpi: upload PM state from init-domain to Xen 2017-03-30 09:41:26 +02:00
zorro zorro: Use kobj_to_dev() 2016-01-25 09:42:23 +01:00
Kconfig libnvdimm for 4.7 2016-05-23 11:18:01 -07:00
Makefile A small bug fix and a new driver for acting as an IPMI device. 2016-10-23 15:56:23 -07:00