Re: [PATCH v3 6/7] tpm_crb: Drop le32_to_cpu(ioread32(..))

2016-01-03 Thread Jarkko Sakkinen
On Thu, Dec 17, 2015 at 11:23:19AM -0700, Jason Gunthorpe wrote: > 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). Reviewed-by: Jarkko S

[PATCH v3 6/7] tpm_crb: Drop le32_to_cpu(ioread32(..))

2015-12-17 Thread Jason Gunthorpe
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 Tested-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_crb.c