linux-stable/drivers
Raviteja Narayanam 10f5562478 serial: uartps: Wait for tx_empty in console setup
[ Upstream commit 42e11948dd ]

On some platforms, the log is corrupted while console is being
registered. It is observed that when set_termios is called, there
are still some bytes in the FIFO to be transmitted.

So, wait for tx_empty inside cdns_uart_console_setup before calling
set_termios.

Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com>
Reviewed-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/1586413563-29125-2-git-send-email-raviteja.narayanam@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:12:41 +02:00
..
accessibility
acpi ACPI: EC: Reference count query handlers under lock 2020-10-01 13:12:31 +02:00
amba
android binder: Prevent context manager from incrementing ref 0 2020-08-21 09:47:58 +02:00
ata libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks 2020-09-09 19:03:12 +02:00
atm firestream: Fix memleak in fs_open 2020-09-23 10:46:26 +02:00
auxdisplay
base device property: Fix the secondary firmware node handling in set_primary_fwnode() 2020-09-03 11:22:32 +02:00
bcma bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA 2020-01-27 14:46:45 +01:00
block rbd: require global CAP_SYS_ADMIN for mapping and unmapping 2020-09-23 10:46:30 +02:00
bluetooth Bluetooth: hci_serdev: Only unregister device if it was registered 2020-08-21 09:48:11 +02:00
bus bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads 2020-04-24 08:00:23 +02:00
cdrom
char tpm: ibmvtpm: Wait for buffer to be set before proceeding 2020-10-01 13:12:37 +02:00
clk clk/ti/adpll: allocate room for terminating null 2020-10-01 13:12:28 +02:00
clocksource clocksource: dw_apb_timer_of: Fix missing clockevent timers 2020-06-20 10:25:08 +02:00
connector
cpufreq cpufreq: powernv: Fix frame-size-overflow in powernv_cpufreq_work_fn 2020-10-01 13:12:39 +02:00
cpuidle cpuidle: Fixup IRQ state 2020-09-09 19:03:06 +02:00
crypto crypto: cpt - don't sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified 2020-08-21 09:48:14 +02:00
dax
dca
devfreq PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out 2020-10-01 13:12:28 +02:00
dio
dma dmaengine: tegra-apb: Prevent race conditions on channel's freeing 2020-10-01 13:12:35 +02:00
dma-buf
edac EDAC/ie31200: Fallback if host bridge device is already initialized 2020-09-03 11:22:27 +02:00
eisa
extcon extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-25 15:41:55 +02:00
firewire
firmware efi: Make it possible to disable efivar_ssdt entirely 2020-07-09 09:36:33 +02:00
fmc
fpga
fsi
gpio gpio: arizona: put pm_runtime in case of failure 2020-07-29 07:42:51 +02:00
gpu drm/amdgpu: increase atombios cmd timeout 2020-10-01 13:12:36 +02:00
hid HID: core: Sanitize event code and type when mapping input 2020-09-09 19:03:06 +02:00
hsi
hv Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload 2020-09-23 10:46:35 +02:00
hwmon hwmon: (applesmc) check status earlier. 2020-09-09 19:03:06 +02:00
hwspinlock
hwtracing coresight: tmc: Fix TMC mode read in tmc_read_unprepare_etb() 2020-08-21 09:48:10 +02:00
i2c i2c: i801: Fix resume bug 2020-09-23 10:46:36 +02:00
ide block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h> 2020-09-09 19:03:12 +02:00
idle
iio iio:accel:mma8452: Fix timestamp alignment and prevent data leak. 2020-09-23 10:46:29 +02:00
infiniband RDMA/rxe: Set sys_image_guid to be aligned with HW IB devices 2020-10-01 13:12:39 +02:00
input Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset lists 2020-09-23 10:46:36 +02:00
iommu iommu/vt-d: Serialize IOMMU GCMD register modifications 2020-09-09 19:03:10 +02:00
ipack
irqchip genirq/affinity: Make affinity setting if activated opt-in 2020-08-21 09:48:23 +02:00
isdn
leds leds: core: Flush scheduled work for system suspend 2020-08-21 09:48:09 +02:00
lightnvm lightnvm: pblk: fix lock order in pblk_rb_tear_down_check 2020-01-27 14:46:32 +01:00
macintosh drivers/macintosh: Fix memleak in windfarm_pm112 driver 2020-06-20 10:25:19 +02:00
mailbox
mcb
md bcache: fix a lost wake-up problem caused by mca_cannibalize_lock 2020-10-01 13:12:29 +02:00
media media: tda10071: fix unsigned sign extension overflow 2020-10-01 13:12:37 +02:00
memory
memstick
message scsi: mptscsih: Fix read sense data size 2020-07-22 09:22:16 +02:00
mfd mfd: mfd-core: Protect against NULL call-back function pointer 2020-10-01 13:12:28 +02:00
misc cxl: Fix kobject memleak 2020-08-21 09:48:08 +02:00
mmc mmc: core: Fix size overflow for mmc partitions 2020-10-01 13:12:29 +02:00
mtd mtd: cfi_cmdset_0002: don't free cfi->cfiq in error path of cfi_amdstd_setup() 2020-10-01 13:12:28 +02:00
mux
net ath10k: use kzalloc to read for ath10k_sdio_hif_diag_read 2020-10-01 13:12:37 +02:00
nfc NFC: st95hf: Fix memleak in st95hf_in_send_cmd 2020-09-23 10:46:26 +02:00
ntb NTB: Fix the default port and peer numbers for legacy drivers 2020-06-25 15:41:50 +02:00
nubus
nvdimm block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h> 2020-09-09 19:03:12 +02:00
nvme nvme-fc: cancel async events before freeing event struct 2020-09-23 10:46:34 +02:00
nvmem nvmem: qfprom: remove incorrect write support 2020-06-11 09:23:01 +02:00
of of: of_mdio: Correct loop scanning logic 2020-07-22 09:22:23 +02:00
oprofile
parisc parisc: mask out enable and reserved bits from sba imask 2020-08-21 09:48:16 +02:00
parport
pci PCI: Fix pci_create_slot() reference count leak 2020-09-03 11:22:26 +02:00
pcmcia
perf drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer 2020-04-02 16:34:14 +02:00
phy phy: qcom-qmp: Use correct values for ipq8074 PCIe Gen2 PHY init 2020-10-01 13:12:23 +02:00
pinctrl pinctrl-single: fix pcs_parse_pinconf() return value 2020-08-21 09:48:13 +02:00
platform platform/x86: intel-vbtn: Fix return value check in check_acpi_dev() 2020-08-21 09:48:03 +02:00
pnp
power power: supply: check if calc_soc succeeded in pm860x_init_battery 2020-08-21 09:48:11 +02:00
powercap
pps
ps3
ptp
pwm pwm: bcm-iproc: handle clk_get_rate() return 2020-08-21 09:48:21 +02:00
rapidio rapidio: Replace 'select' DMAENGINES 'with depends on' 2020-09-23 10:46:34 +02:00
ras
regulator regulator: push allocation in set_consumer_device_supply() out of lock 2020-09-23 10:46:30 +02:00
remoteproc remoteproc: Fix IDR initialisation in rproc_alloc() 2020-06-25 15:41:47 +02:00
reset
rpmsg rpmsg: glink: smem: Ensure ordering during tx 2020-04-24 08:01:06 +02:00
rtc rtc: ds1374: fix possible race condition 2020-10-01 13:12:38 +02:00
s390 s390/cio: add cond_resched() in the slow_eval_known_fn() loop 2020-09-03 11:22:30 +02:00
sbus
scsi scsi: qedi: Fix termination timeouts in session logout 2020-10-01 13:12:41 +02:00
sfi
sh
sn
soc soc: imx: gpc: fix power up sequencing 2020-04-24 08:01:18 +02:00
spi spi: Fix memory leak on splited transfers 2020-09-23 10:46:34 +02:00
spmi
ssb
staging media: staging/imx: Missing assignment in imx_media_capture_device_register() 2020-10-01 13:12:35 +02:00
target scsi: target: iscsi: Fix hang in iscsit_access_np() when getting tpg->np_login_sem 2020-09-23 10:46:30 +02:00
tc
tee tee: optee: Fix compilation issue with nommu 2020-02-05 14:18:24 +00:00
thermal thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430 2020-09-09 19:03:10 +02:00
thunderbolt thunderbolt: Prevent crash if non-active NVMem file is read 2020-02-28 16:36:09 +01:00
tty serial: uartps: Wait for tx_empty in console setup 2020-10-01 13:12:41 +02:00
uio uio_pdrv_genirq: fix use without device tree and no interrupt 2020-07-22 09:22:27 +02:00
usb ehci-hcd: Move include to keep CRC stable 2020-09-23 10:46:36 +02:00
uwb
vfio vfio/pci: Fix SR-IOV VF handling with MMIO blocking 2020-09-12 13:39:11 +02:00
vhost vhost/vsock: fix packet delivery order to monitoring devices 2020-05-27 16:42:56 +02:00
video fbcon: Fix user font detection test at fbcon_resize(). 2020-09-23 10:46:35 +02:00
virt
virtio virtio_ring: Avoid loop when vq is broken in virtqueue_poll 2020-08-26 10:29:57 +02:00
vlynq
vme vme: bridges: reduce stack usage 2020-02-28 16:36:04 +01:00
w1 w1: omap-hdq: cleanup to add missing newline for some dev_dbg 2020-06-20 10:25:20 +02:00
watchdog watchdog: f71808e_wdt: clear watchdog timeout occurred flag 2020-08-21 09:48:19 +02:00
xen xen/xenbus: Fix granting of vmalloc'd memory 2020-09-09 19:03:07 +02:00
zorro
Kconfig
Makefile