summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-aspeed.c
diff options
context:
space:
mode:
authorPeter Huewe2017-03-02 14:03:11 +0100
committerJarkko Sakkinen2017-04-03 21:46:00 +0200
commitf848f2143ae42dc0918400039257a893835254d1 (patch)
tree8e29ecb87f5756ef1da8198d8c7b086605fc457f /drivers/gpio/gpio-aspeed.c
parenttpm/tpm_crb: enter the low power state upon device suspend (diff)
downloadkernel-qcow2-linux-f848f2143ae42dc0918400039257a893835254d1.tar.gz
kernel-qcow2-linux-f848f2143ae42dc0918400039257a893835254d1.tar.xz
kernel-qcow2-linux-f848f2143ae42dc0918400039257a893835254d1.zip
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: <stable@vger.kernel.org> Fixes: 0edbfea537d1 ("tpm/tpm_tis_spi: Add support for spi phy") Signed-off-by: Alexander Steffen <Alexander.Steffen@infineon.com> Signed-off-by: Peter Huewe <peter.huewe@infineon.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Benoit Houyere <benoit.houyere@st.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-aspeed.c')
0 files changed, 0 insertions, 0 deletions