aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm-chip.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2016-01-07 17:36:26 -0700
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-02-10 04:11:51 +0200
commit1bd047be37d95bf65a219f4931215f71878ac060 (patch)
tree2e34afde34909507da6125d8589ce263226f2526 /drivers/char/tpm/tpm-chip.c
parenttpm_crb: Drop le32_to_cpu(ioread32(..)) (diff)
downloadlinux-dev-1bd047be37d95bf65a219f4931215f71878ac060.tar.xz
linux-dev-1bd047be37d95bf65a219f4931215f71878ac060.zip
tpm_crb: Use devm_ioremap_resource
To support the force mode in tpm_tis we need to use resource locking in tpm_crb as well, via devm_ioremap_resource. The light restructuring better aligns crb and tis and makes it easier to see the that new changes make sense. The control area and its associated buffers do not always fall in the range of the iomem resource given by the ACPI object. This patch fixes the issue by mapping the buffers if this is the case. [jarkko.sakkinen@linux.intel.com: squashed update described in the last paragraph.] Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Acked-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/tpm/tpm-chip.c')
0 files changed, 0 insertions, 0 deletions