net: ti: cpsw: Move cpsw_phy_sel() to _probe()
[oweals/u-boot.git] / drivers / tpm / tpm2_tis_spi.c
index c5d17a679d2d2965ea17d508886239568f67c3c4..8878130bd72e66344d9cc57079acc433fea10ab0 100644 (file)
@@ -510,6 +510,7 @@ static int tpm_tis_spi_cleanup(struct udevice *dev)
 static int tpm_tis_spi_open(struct udevice *dev)
 {
        struct tpm_chip *chip = dev_get_priv(dev);
+       struct tpm_chip_priv *priv = dev_get_uclass_priv(dev);
 
        if (chip->is_open)
                return -EBUSY;
@@ -575,6 +576,9 @@ static int tpm_tis_spi_probe(struct udevice *dev)
        struct tpm_chip *chip = dev_get_priv(dev);
        int ret;
 
+       /* Use the TPM v2 stack */
+       priv->version = TPM_V2;
+
        if (IS_ENABLED(CONFIG_DM_GPIO)) {
                struct gpio_desc reset_gpio;