]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tpm_tis: Refactor the interrupt setup
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 25 Nov 2015 21:05:35 +0000 (14:05 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:26:16 +0000 (10:26 +0100)
commit6805937a66f81ad846aed7dff2d41f875765a2ca
treec490602ceb5f38953f66c251e896729bb7ec6497
parent8ef2316697a928b577013494f528ec8e21a86306
tpm_tis: Refactor the interrupt setup

BugLink: http://bugs.launchpad.net/bugs/1398274
Now that the probe and run cases are merged together we can use a
much simpler setup flow where probe and normal setup are done with
exactly the same code.

Since the new flow always calls tpm_gen_interrupt to confirm the IRQ
there is also no longer any need to call tpm_get_timeouts twice.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Martin Wilck <Martin.Wilck@ts.fujitsu.com>
Tested-by: Scot Doyle <lkml14@scotdoyle.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: Peter Huewe <peterhuewe@gmx.de>
(cherry picked from commit e3837e74a06dc38ab79529758a3667fbff2fdc17)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/char/tpm/tpm_tis.c