diff options
| author | Peter Huewe <[email protected]> | 2017-03-02 13:03:11 +0000 |
|---|---|---|
| committer | Jarkko Sakkinen <[email protected]> | 2017-04-03 22:46:00 +0300 |
| commit | f848f2143ae42dc0918400039257a893835254d1 (patch) | |
| tree | 8e29ecb87f5756ef1da8198d8c7b086605fc457f /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | 095fc30c2c8d2c63ec88745f57711f05af617581 (diff) | |
tpm_tis_spi: Use single function to transfer data
The algorithm for sending data to the TPM is mostly identical to the
algorithm for receiving data from the TPM, so a single function is
sufficient to handle both cases.
This is a prequisite for all the other fixes, so we don't have to fix
everything twice (send/receive)
v2: u16 instead of u8 for the length.
Cc: <[email protected]>
Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy")
Signed-off-by: Alexander Steffen <[email protected]>
Signed-off-by: Peter Huewe <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Tested-by: Benoit Houyere <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions