From nobody Sat May 10 13:10:18 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) client-ip=80.81.252.135; envelope-from=seabios-bounces@seabios.org; helo=mail.coreboot.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) by mx.zohomail.com with SMTPS id 1507308126939772.3632585896008; Fri, 6 Oct 2017 09:42:06 -0700 (PDT) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1e0VhB-0004ky-0r; Fri, 06 Oct 2017 18:41:53 +0200 Received: from mx1.redhat.com ([209.132.183.28]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1e0ThG-0007X9-6d for seabios@seabios.org; Fri, 06 Oct 2017 16:34:02 +0200 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 849FAC047B86; Fri, 6 Oct 2017 14:33:47 +0000 (UTC) Received: from localhost (ovpn-112-63.ams2.redhat.com [10.36.112.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id E091A1824E; Fri, 6 Oct 2017 14:33:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 849FAC047B86 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=marcandre.lureau@redhat.com From: marcandre.lureau@redhat.com To: seabios@seabios.org Date: Fri, 6 Oct 2017 16:33:26 +0200 Message-Id: <20171006143327.25874-4-marcandre.lureau@redhat.com> In-Reply-To: <20171006143327.25874-1-marcandre.lureau@redhat.com> References: <20171006143327.25874-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 06 Oct 2017 14:33:47 +0000 (UTC) X-Spam-Score: -8.0 (--------) X-Mailman-Approved-At: Fri, 06 Oct 2017 18:41:48 +0200 Subject: [SeaBIOS] [PATCH 3/4] tpm: use get_tpm_version() callback X-BeenThere: seabios@seabios.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SeaBIOS mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: seabios-bounces@seabios.org Sender: "SeaBIOS" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-ZohoMail: RSF_4 Z_629925259 SPT_0 From: Marc-Andr=C3=A9 Lureau As originally intended, I guess. Signed-off-by: Marc-Andr=C3=A9 Lureau --- src/hw/tpm_drivers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hw/tpm_drivers.c b/src/hw/tpm_drivers.c index 0daaef2..5cee9d8 100644 --- a/src/hw/tpm_drivers.c +++ b/src/hw/tpm_drivers.c @@ -346,6 +346,7 @@ struct tpm_driver tpm_drivers[TPM_NUM_DRIVERS] =3D { .durations =3D NULL, .set_timeouts =3D set_timeouts, .probe =3D tis_probe, + .get_tpm_version =3D tis_get_tpm_version, .init =3D tis_init, .activate =3D tis_activate, .ready =3D tis_ready, @@ -367,7 +368,7 @@ tpmhw_probe(void) if (td->probe() !=3D 0) { td->init(); TPMHW_driver_to_use =3D i; - return tis_get_tpm_version(); + return td->get_tpm_version(); } } return TPM_VERSION_NONE; --=20 2.14.1.146.gd35faa819 _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios