Page MenuHomeFreeBSD

tpm: crb: factor out idle/ready state transitions
ClosedPublic

Authored by kevans on Tue, Nov 11, 1:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 15, 9:48 PM
Unknown Object (File)
Sat, Nov 15, 9:48 PM
Unknown Object (File)
Sat, Nov 15, 9:48 PM
Unknown Object (File)
Sat, Nov 15, 9:48 PM
Unknown Object (File)
Sat, Nov 15, 9:48 PM
Unknown Object (File)
Sat, Nov 15, 7:55 PM
Unknown Object (File)
Sat, Nov 15, 5:52 PM
Unknown Object (File)
Sat, Nov 15, 5:52 PM
Subscribers
None

Details

Summary

Some TPM implementations have a different start method that requires
an additional notification for some state changes; for instance, the
"Pluton" start method. Just factor these transitions out for now, and
the coming commits will introduce points that the start method can hook
in at.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans created this revision.

This patch didn't make my Juniper EX4000 catch-fire-and-burn.

sys/dev/tpm/tpm_crb.c
310

Why -1 and not just 0 given you compare "> 0"? 0 as a wait makes more sense to me.

387–388

Any idea why this line is show as a diff?

kevans added inline comments.
sys/dev/tpm/tpm_crb.c
310

I started with -1 and decided that 0 made more sense as I was cleaning up (below was originally timeout >= 0), forgot to clean this up- whoops.

387–388

Unclear... hexdump of the diff doesn't show anything of interest, and git-diff also renders it as a difference.

kevans marked 2 inline comments as done.

-1 -> 0

This revision is now accepted and ready to land.Fri, Nov 14, 6:11 PM