On Fri, Oct 27, 2017 at 04:28:31PM -0500, Brijesh Singh wrote: > This will fail because PEK_GEN require the platform in INIT state and > nobody has done the state transition from INIT -> UINIT. Huh, FW is in INIT state and PEK_GEN wants it to be in INIT state. Typo? Aaanyway, I don't like this whole notion of prematurely and predictively executing commands on the PSP if it is not needed. So how about executing only those commands which put the FW in the required state and then executing the actual command? I.e., if a command needs to be executed in UINIT state, you put the PSP in that state before executing that command. If the command needs to be in INIT state, you put the PSP in INIT state first and so on... For convenience, you could carry the current PSP state in some struct psp_dev member or whatever and query it before running the respective commands. Hmmm? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.