From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Thu, 9 Jan 2020 15:29:45 +0100 Subject: [PATCH V2 2/2] cmd: tpm: add a subcommand device In-Reply-To: <1578579928-21160-2-git-send-email-philippe.reynes@softathome.com> References: <1578579928-21160-1-git-send-email-philippe.reynes@softathome.com> <1578579928-21160-2-git-send-email-philippe.reynes@softathome.com> Message-ID: <20200109152945.5c1068d9@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Philippe, Philippe Reynes wrote on Thu, 9 Jan 2020 15:25:28 +0100: > The command tpm (and tpm2) search the tpm and use it. > On sandbox, there are two tpm (tpm 1.x and tpm 2.0). > So the command tpm and tpm2 are always executed with > the first tpm (tpm 1.x), and the command tpm2 always > fails. >=20 > This add a subcommand device to command tpm and > command tpm2. Then the command tpm and tpm2 use > the device selected with the subcommand device. >=20 > To be compatible with previous behaviour, if the > subcommand device is not used before a tpm (or tpm2) > command, the device 0 is selected. >=20 > Signed-off-by: Philippe Reynes Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l