summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.dtbinst
diff options
context:
space:
mode:
authorAlexander Steffen <Alexander.Steffen@infineon.com>2017-09-11 12:26:52 +0200
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2017-10-18 18:28:46 +0300
commit6b3a13173f23e798e1ba213dd4a2c065a3b8d751 (patch)
treecdccb6bb1c247a7a54497e1e1e52a2c01521cdc2 /scripts/Makefile.dtbinst
parentf5357413dbaadd82361903f3c389cb1d5763a85e (diff)
downloadop-kernel-dev-6b3a13173f23e798e1ba213dd4a2c065a3b8d751.zip
op-kernel-dev-6b3a13173f23e798e1ba213dd4a2c065a3b8d751.tar.gz
tpm_tis_spi: Use DMA-safe memory for SPI transfers
The buffers used as tx_buf/rx_buf in a SPI transfer need to be DMA-safe. This cannot be guaranteed for the buffers passed to tpm_tis_spi_read_bytes and tpm_tis_spi_write_bytes. Therefore, we need to use our own DMA-safe buffer and copy the data to/from it. The buffer needs to be allocated separately, to ensure that it is cacheline-aligned and not shared with other data, so that DMA can work correctly. Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy") Cc: stable@vger.kernel.org Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Alexander Steffen <Alexander.Steffen@infineon.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'scripts/Makefile.dtbinst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud