u-boot/drivers
Philipp Tomsich 7e0e5c552f rockchip: spi: only wait for completion, if transmitting
The logic in the main transmit loop took a bit of reading the TRM to
fully understand (due to silent assumptions based in internal logic):
the "wait until idle" at the end of each iteration through the loop is
required for the transmit-path as each clearing of the ENA register
(to update run-length in the CTRLR1 register) will implicitly flush
the FIFOs... transmisson can therefore not overlap loop iterations.

This change adds a comment to clarify the reason/need for waiting
until the controller becomes idle and wraps the entire check into an
'if (out)' to make it clear that this is required for transfers with a
transmit-component only (for transfers having a receive-component,
completion of the transmit-side is trivially ensured by having
received the correct number of bytes).

The change does not increase execution time measurably in any of my
tests.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2019-05-01 00:00:04 +02:00
..
adc adc: exynos-adc: Fix wrong bit operation used to stop the ADC 2019-03-11 15:53:19 +09:00
ata Merge branch 'master' of git://git.denx.de/u-boot-sunxi 2019-04-17 09:19:45 -04:00
axi drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bios_emulator bios_emulator: remove assignment without effect 2018-07-23 14:33:21 -04:00
block blk: Increase cache element size 2019-01-15 15:28:53 -05:00
board drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bootcount bootcount: add a DM RTC backing store for bootcount 2018-12-10 10:04:45 +01:00
clk - Add support for Amlogic p200 & p201 Reference Designs 2019-04-24 12:26:25 -04:00
core dm: core: Change platform specific translation-offset handling 2019-04-23 20:26:43 -06:00
cpu cpu: Bind timer driver for boot hart 2019-02-27 09:12:33 +08:00
crypto SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr ddr: altera: Stratix10: Add ECC memory scrubbing 2019-04-17 22:20:17 +02:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu dfu: mmc: call fs functions instead of run_command 2019-01-30 21:22:53 -05:00
dma - mt76xx: add USB support, small fixes 2019-04-13 08:27:26 -04:00
fastboot fastboot: add support for 'getvar platform' 2019-04-21 10:26:52 +02:00
firmware firmware: ti_sci: Modify auth_boot TI-SCI API to match new version 2019-04-26 17:51:51 -04:00
fpga arm: zynq: Add an info message about post config 2019-04-16 11:51:34 +02:00
gpio gpio: bcm6345: allow this driver on ARCH_BCM63158 2019-04-12 17:32:51 +02:00
hwspinlock hwspinlock: add stm32 hardware spinlock support 2018-12-06 23:26:33 -05:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-socfpga 2019-04-26 13:49:58 -04:00
input Kconfig: tegra: Migrate TEGRA_KEYBOARD 2019-02-20 09:01:45 -07:00
led led: bcm6858: allow to use this driver on ARCH_963158 2019-04-23 17:57:22 -04:00
mailbox drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc misc: fs_loader: Replace label with DT phandle 2019-04-22 18:13:22 -04:00
mmc mmc: mv_sdhci: add driver model support 2019-04-26 07:35:38 +02:00
mtd mtd: nand: raw: Fix CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT behavior 2019-04-26 18:58:20 -04:00
net net: lpc32xx: Use IRAM for transmit buffer 2019-04-26 18:58:20 -04:00
nvme blk: Call part_init() in the post_probe() method 2018-11-14 09:16:27 -08:00
pch pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci pci: Add boundary check for hose->regions 2019-04-23 17:57:23 -04:00
pcmcia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
phy phy: usbphyc: increase PLL wait timeout 2019-04-21 10:26:51 +02:00
pinctrl STM32 MCUs update: 2019-04-24 12:26:39 -04:00
power stm32 patches for v2019.07-rc1 2019-04-12 15:43:19 -04:00
pwm pwm: sunxi: choose best prescaler to improve PWM resolution 2018-10-24 21:57:16 +05:30
qe drivers: qe: add TFABOOT support 2018-12-06 14:37:51 -08:00
ram stm32mp1: add trusted boot with TF-A 2019-04-12 16:09:13 +02:00
remoteproc spl: Allow remoteproc drivers to be used within SPL 2018-09-11 08:32:55 -04:00
reset - Add support for Amlogic p200 & p201 Reference Designs 2019-04-24 12:26:25 -04:00
rtc rtc: m41t62: add compatible for m41t82 2019-04-25 00:00:49 +02:00
scsi dm: scsi: report correct device number 2019-02-19 08:55:43 -05:00
serial serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL 2019-04-09 09:28:50 +03:00
smem drivers: smem: sandbox 2018-07-19 16:31:38 -04:00
soc soc: keystone: Merge into ti specific directory 2019-04-11 20:07:12 -04:00
sound x86: Add sound support for samus 2019-02-20 15:27:11 +08:00
spi rockchip: spi: only wait for completion, if transmitting 2019-05-01 00:00:04 +02:00
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset sysreset: syscon: remove POWER reset cause 2019-04-26 18:58:22 -04:00
tee avb: add support for named persistent values 2019-04-26 18:58:22 -04:00
thermal SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer - Add support for Amlogic p200 & p201 Reference Designs 2019-04-24 12:26:25 -04:00
tpm tpm: Export the open/close functions 2018-11-29 09:30:06 -07:00
usb usb: dwc2: fix gadget disconnect 2019-04-21 10:26:52 +02:00
video Move to DM 2019-04-15 07:31:14 -04:00
virtio virtio: Add a Sandbox transport driver 2018-11-14 09:16:28 -08:00
w1 w1: Add driver for i.MX bus master controller 2019-01-01 14:12:18 +01:00
w1-eeprom w1-eeprom: Add support for Maxim DS2502 add only memory 2018-11-16 16:51:55 -05:00
watchdog watchdog: at91sam9_wdt: Remove now superfluous wdt start and reset 2019-04-26 09:16:32 +02:00
Kconfig soc: ti: k3: add navss ringacc driver 2019-04-11 20:07:12 -04:00
Makefile x86: sandbox: pch: Add a CONFIG option for PCH 2019-02-20 15:25:30 +08:00