Re: [PATCH v3 7/7] tpm_crb: Use devm_ioremap_resource

2016-01-04 Thread Jarkko Sakkinen
On Mon, Jan 04, 2016 at 11:30:25AM -0700, Jason Gunthorpe wrote: > On Sun, Jan 03, 2016 at 07:32:13PM +0200, Jarkko Sakkinen wrote: > > On Thu, Dec 17, 2015 at 11:23:20AM -0700, Jason Gunthorpe wrote: > > > To support the force mode in tpm_tis we need to use resource locking > > > in tpm_crb as wel

Re: [PATCH v3 7/7] tpm_crb: Use devm_ioremap_resource

2016-01-04 Thread Jason Gunthorpe
On Sun, Jan 03, 2016 at 07:32:13PM +0200, Jarkko Sakkinen wrote: > On Thu, Dec 17, 2015 at 11:23:20AM -0700, Jason Gunthorpe wrote: > > 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 ali

Re: [PATCH v3 7/7] tpm_crb: Use devm_ioremap_resource

2016-01-03 Thread Jarkko Sakkinen
On Thu, Dec 17, 2015 at 11:23:20AM -0700, Jason Gunthorpe wrote: > 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 sens

[PATCH v3 7/7] tpm_crb: Use devm_ioremap_resource

2015-12-17 Thread Jason Gunthorpe
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. Signed-off-by: Jason Gunthorpe Tested-by: Jarkko Sakkinen --- driver