It sounds like there are several intertwined issues here. I'd like to keep this patch relatively minimal, so here are my current thoughts on a path forward:
* Refactor references to chip->ops to go through tpm_try_get_ops, as mentioned in the previous patch * Have a common tpm_shutdown method in tpm-chip.c that device specific drivers call (or that is just registered automatically for all devices?) that nulls out chip->ops (to prevent any commands being issued after tpm2_shutdown) and sends tpm2_shutdown This would leave further device refactoring for a future patch. Before I spend too much time on this, does this seem like a reasonable approach? Anything I'm missing? Thanks, Josh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ tpmdd-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
