]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: fix reading of permanent flags
authorAndré Draszik <adraszik@tycoint.com>
Tue, 3 Oct 2017 15:55:51 +0000 (16:55 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Nov 2017 02:10:29 +0000 (19:10 -0700)
commit8935dc916080294221eb6ccf706d418d775b93bf
treea85c7bfbc75f9b028ec79069f48f8bcf5715ee0b
parent04862b00b7b90aa9f7ca94c8d7a960afc909abb7
tpm: fix reading of permanent flags

The offset of the permanent flags structure is in a different
place in the response compared to what the code is doing,
which gives us a completely useless result.

Fix by replacing hand-crafted code with generic parser
infrastructure.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Acked-by: Simon Glass <sjg@chromium.org>
lib/tpm.c