Skip to content

Commit

Permalink
Merge branch pull request openbmc#12 into aspeed-dev-v2019.04
Browse files Browse the repository at this point in the history
Change-Id: I66c2fc09c21405c34f65d5be9e8c661e62bfae45
  • Loading branch information
Chia-Wei Wang authored and Sushil Kumar Dubey committed Nov 14, 2023
1 parent 462db40 commit 46dbf13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/tpm/tpm2_tis_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ int tpm_tis_recv(struct udevice *dev, u8 *buf, size_t count)
int tpm_tis_cleanup(struct udevice *dev)
{
struct tpm_chip *chip = dev_get_priv(dev);
int ret;

ret = tpm_tis_request_locality(dev, 0);
if (ret)
return ret;

tpm_tis_ready(dev);

tpm_tis_release_locality(dev, chip->locality);

return 0;
Expand Down

0 comments on commit 46dbf13

Please sign in to comment.