Re: [PATCH v3 4/7] tpm_tis: Use devm_ioremap_resource

2016-01-03 Thread Jarkko Sakkinen
On Thu, Dec 17, 2015 at 11:23:17AM -0700, Jason Gunthorpe wrote: > This does a request_resource under the covers which means tis holds a > lock on the memory range it is using so other drivers cannot grab it. > When doing probing it is important to ensure that other drivers are > not using the

Re: [PATCH v3 4/7] tpm_tis: Use devm_ioremap_resource

2016-01-03 Thread Jarkko Sakkinen
On Thu, Dec 17, 2015 at 11:23:17AM -0700, Jason Gunthorpe wrote: > This does a request_resource under the covers which means tis holds a > lock on the memory range it is using so other drivers cannot grab it. > When doing probing it is important to ensure that other drivers are > not using the

[PATCH v3 4/7] tpm_tis: Use devm_ioremap_resource

2015-12-17 Thread Jason Gunthorpe
This does a request_resource under the covers which means tis holds a lock on the memory range it is using so other drivers cannot grab it. When doing probing it is important to ensure that other drivers are not using the same range before tis starts touching it. To do this flow the actual struct

[PATCH v3 4/7] tpm_tis: Use devm_ioremap_resource

2015-12-17 Thread Jason Gunthorpe
This does a request_resource under the covers which means tis holds a lock on the memory range it is using so other drivers cannot grab it. When doing probing it is important to ensure that other drivers are not using the same range before tis starts touching it. To do this flow the actual struct