OrangePi_CM5/include/linux/spi
Vladimir Oltean 862dd2a946
spi: Don't look at TX buffer for PTP system timestamping
The API for PTP system timestamping (associating a SPI transaction with
the system time at which it was transferred) is flawed: it assumes that
the xfer->tx_buf pointer will always be present.

This is, of course, not always the case.

So introduce a "progress" variable that denotes how many word have been
transferred.

Fix the Freescale DSPI driver, the only user of the API so far, in the
same patch.

Fixes: b42faeee71 ("spi: Add a PTP system timestamp to the transfer structure")
Fixes: d6b71dfaee ("spi: spi-fsl-dspi: Implement the PTP system timestamping for TCFQ mode")
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20191227012417.1057-1-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-12-27 23:03:43 +00:00
..
ad7877.h
…
ads7846.h
…
at73c213.h
…
at86rf230.h
…
cc2520.h
…
corgi_lcd.h
…
ds1305.h
…
eeprom.h
…
flash.h
…
ifx_modem.h
…
l4f00242t03.h
…
libertas_spi.h
…
lms283gf05.h
…
max7301.h
…
mc33880.h
…
mcp23s08.h
…
mmc_spi.h
…
mxs-spi.h
…
pxa2xx_spi.h
…
rspi.h
…
s3c24xx.h
…
sh_hspi.h
…
sh_msiof.h
…
spi-fsl-dspi.h
…
spi-mem.h
…
spi.h spi: Don't look at TX buffer for PTP system timestamping 2019-12-27 23:03:43 +00:00
spi_bitbang.h
…
spi_gpio.h
…
spi_oc_tiny.h
…
tdo24m.h
…
tle62x0.h
…
xilinx_spi.h
…