]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tpm_crb: Use devm_ioremap_resource
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Fri, 8 Jan 2016 00:36:26 +0000 (17:36 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:29:23 +0000 (10:29 +0100)
commit6348e1382e5cc250e5dda1ba65786254beb88f21
tree861b6c6a6e7ce35eb9f229e425942d6d19842c1c
parentc00a0242aef919e41a3d3a91aaab2c23ebf81161
tpm_crb: Use devm_ioremap_resource

BugLink: http://bugs.launchpad.net/bugs/1398274
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>
(cherry picked from commit 1bd047be37d95bf65a219f4931215f71878ac060)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/char/tpm/tpm_crb.c