]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tpm_crb: Drop le32_to_cpu(ioread32(..))
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Fri, 8 Jan 2016 00:36:25 +0000 (17:36 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:29:22 +0000 (10:29 +0100)
commitc00a0242aef919e41a3d3a91aaab2c23ebf81161
treef2e9a84a60c449f79842afa06915059149dea014
parent53079c1ba5988097db95361fac605f95de043796
tpm_crb: Drop le32_to_cpu(ioread32(..))

BugLink: http://bugs.launchpad.net/bugs/1398274
ioread32 and readl are defined to read from PCI style memory, ie little
endian and return the result in host order. On platforms where a
swap is required ioread32/readl do the swap internally (eg see ppc).

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