tpm2: Don't assume active low reset value
authorKayla Theil <kayla.theil@mixed-mode.de>
Fri, 6 Sep 2019 10:40:45 +0000 (12:40 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commitd8206ff198afaf36061efb14ff6af5e6119b30e7
treed8e708f15a7772cbee2d7945a9c3c57163e54056
parent7a3f15e7181cf5a9667ff410260397f0e51c9020
tpm2: Don't assume active low reset value

The reset function sets the pin to 0 then 1 but if the pin is marked
ACTIVE_LOW in the DT it gets inverted and leaves the TPM in reset.
Let the gpio driver take care of the reset polarity.

Signed-off-by: Kayla Theil <kayla.theil@mixed-mode.de>
drivers/tpm/tpm2_tis_spi.c