alistair23-linux/drivers/fsi
Benjamin Herrenschmidt f3ca4834ac fsi/fsi-master-gpio: Delay sampling of FSI data input
Most SoC GPIO implementations, including the Aspeed one, have
synchronizers on the GPIO inputs. This means that the value
read from a GPIO is a couple of clocks old, from whatever clock
source feeds those synchronizers.

In practice, this means that in no-delay mode, we are using a
value that can potentially be a bit too old and too close to
the clock edge establishing the data on the other side of the link.

The voltage converters we use on some systems make this worse
and sensitive to things like voltage fluctuations etc... This is,
we believe, the cause of occasional CRC errors encountered during
heavy activity on the LPC bus.

This is fixed by introducing a dummy GPIO read before the actual
data read. It slows down SBEFIFO by about 15% (less than any delay
primitive) and the end result is so far solid.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Tested-by: Joel Stanley <joel@jms.id.au>
2018-06-12 14:04:59 +10:00
..
fsi-core.c fsi: core: Add check for master property no-scan-on-init 2018-03-14 19:11:01 +01:00
fsi-master-gpio.c fsi/fsi-master-gpio: Delay sampling of FSI data input 2018-06-12 14:04:59 +10:00
fsi-master-hub.c fsi: master: Clarify master lifetimes & fix use-after-free in hub master 2018-03-14 19:11:01 +01:00
fsi-master.h fsi: master: Clarify master lifetimes & fix use-after-free in hub master 2018-03-14 19:11:01 +01:00
fsi-scom.c drivers/fsi/scom: Remove reset before every putscom 2017-08-28 17:15:16 +02:00
Kconfig fsi: Match fsi slaves and engines to available dt nodes 2018-03-14 19:11:00 +01:00
Makefile drivers/fsi: Add hub master support 2017-06-09 11:52:09 +02:00