Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1079039ybt; Wed, 24 Jun 2020 19:33:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0LwYQzzssankjlHNpEGChu2ZbNqjXMdUe9FfnxehHiVlznqkxeholUzugZ5WbrgtOsYPd X-Received: by 2002:a17:906:c047:: with SMTP id bm7mr3329445ejb.499.1593052430968; Wed, 24 Jun 2020 19:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593052430; cv=none; d=google.com; s=arc-20160816; b=RSVZgs0QFVzDmGvebS2CNfAreLcB9Y10pPqcOLC38NeShkbijYu8iD86na7BXG9qTK Sp2SH4mY9x5Mm5uO7gPrt1xo/v7Ti5ZBLlHkNmsVW/UfqnFFwyBRb7ASEanwmVO4ftKg 7txAnPT/H/JSzR6EcdmGTyuQwKkqbNa4lQjck1XAyc0Hv1JHuCQpkwz8s6YQhRc+vQlx EVz/CsgpbCG6MsXJVsFaLlL7NRs/3sGOrBHIMDQN/654PPeVFIKP7eoUvT/bncFeoVZs NYFrelD6FxkCUWW1da10Ttl/Rz50yDblS+JH73b60NLNVB4QGQxEbiMekcec+eL5aOqW 58NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=FUGKbLz96i9FwrkTOklCZ2plByWm3a2UTqR8xHd3+Tk=; b=UMHP6WYBUjYQqZB4b3a0SqxBm6WKw1xhXMxuA8PWoPqL4mVb5zrWFBMHd+zUvB/g0w K4BwOwZqmqVvM9g+miGTQ4OqVwwX3ycN5DaW1GcBTK9C9CSdArE3Mi0K/zhYwMfGC2Ap Po5Z7IBNCG/aQr/9u311rmuWSJIVp0X0WhwVa/ponn/3pioRxttL7EvzCutcMtlJz45i jJJyPqKA3D8Cj+deE0pPOFhzMzJXAs7XsLcJeDSbw81K+fw7kT65U1a6c00iZAuqkH99 Cc45xZZY9UDeklW2o611kiZQohMNb8HSV46hkfqnPgd3i2efzt84eGt4IR4+kBg4wRVI GTsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si510311edi.539.2020.06.24.19.33.27; Wed, 24 Jun 2020 19:33:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389345AbgFYCbT (ORCPT + 99 others); Wed, 24 Jun 2020 22:31:19 -0400 Received: from mga18.intel.com ([134.134.136.126]:57768 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389250AbgFYCbT (ORCPT ); Wed, 24 Jun 2020 22:31:19 -0400 IronPort-SDR: 3bOysL34f31f4HEjrvQVbQ4dSBzFo8KlOu4IVIipZnxfxRexoggPDt55ramIN0l+O6+gQmlJJv /uE7l1CReMhw== X-IronPort-AV: E=McAfee;i="6000,8403,9662"; a="132163057" X-IronPort-AV: E=Sophos;i="5.75,277,1589266800"; d="scan'208";a="132163057" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2020 19:31:18 -0700 IronPort-SDR: 1j6DOtZVsRj3V4H0d+8MgWUsYZhBFVYMokiivN8IBlgi/VOGT+cJ7fEF5+P5Kyz5XGTwRj9ITU k2849bsBhqUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,277,1589266800"; d="scan'208";a="452854664" Received: from hluxenbu-mobl.ger.corp.intel.com (HELO localhost) ([10.252.36.218]) by orsmga005.jf.intel.com with ESMTP; 24 Jun 2020 19:31:13 -0700 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: Jarkko Sakkinen , Kylene Jo Hall , "Ferry Toth :" , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] tpm_tis: Remove the HID IFX0102 Date: Thu, 25 Jun 2020 05:31:11 +0300 Message-Id: <20200625023111.270458-1-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acer C720 running Linux v5.3 reports this in klog: tpm_tis: 1.2 TPM (device-id 0xB, rev-id 16) tpm tpm0: tpm_try_transmit: send(): error -5 tpm tpm0: A TPM error (-5) occurred attempting to determine the timeouts tpm_tis tpm_tis: Could not get TPM timeouts and durations tpm_tis 00:08: 1.2 TPM (device-id 0xB, rev-id 16) tpm tpm0: tpm_try_transmit: send(): error -5 tpm tpm0: A TPM error (-5) occurred attempting to determine the timeouts tpm_tis 00:08: Could not get TPM timeouts and durations ima: No TPM chip found, activating TPM-bypass! tpm_inf_pnp 00:08: Found TPM with ID IFX0102 % git --no-pager grep IFX0102 drivers/char/tpm drivers/char/tpm/tpm_infineon.c: {"IFX0102", 0}, drivers/char/tpm/tpm_tis.c: {"IFX0102", 0}, /* Infineon */ Obviously IFX0102 was added to the HID table for the TCG TIS driver by mistake. Fixes: 93e1b7d42e1e ("[PATCH] tpm: add HID module parameter") Link: https://bugzilla.kernel.org/show_bug.cgi?id=203877 Cc: Kylene Jo Hall Reported-by: Ferry Toth: Signed-off-by: Jarkko Sakkinen --- v2: git diff -R HEAD~1 -- drivers/char/tpm/tpm2-space.c | patch -p1 git diff -R HEAD~1 -- include/linux/tpm.h | patch -p1 drivers/char/tpm/tpm_tis.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index e7df342a317d..c58ea10fc92f 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -238,7 +238,6 @@ static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, static struct pnp_device_id tpm_pnp_tbl[] = { {"PNP0C31", 0}, /* TPM */ {"ATM1200", 0}, /* Atmel */ - {"IFX0102", 0}, /* Infineon */ {"BCM0101", 0}, /* Broadcom */ {"BCM0102", 0}, /* Broadcom */ {"NSC1200", 0}, /* National */ -- 2.25.1