Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp466894ybt; Mon, 6 Jul 2020 13:54:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP6YZzd/mbC42Hiji0AaiYUnux8YkF7qBcFUPH619n6Hgta3A8oz/sMuoh2xfl83u5CLhX X-Received: by 2002:aa7:c98d:: with SMTP id c13mr48968534edt.188.1594068890952; Mon, 06 Jul 2020 13:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594068890; cv=none; d=google.com; s=arc-20160816; b=E5BdVoY9ew8eX770TDtg/0IRNC5XwtsWhaVZnZNJ/xHeJG0HVbnSyw+NZDsQ2uhB++ qs7vmQw1b91X3M5ryvVoq3+a+VgGixi4X3WY8UI0zRLRjr5G4KEx+AMdSM+V0scS4GqA xK1EeyeICn5aO8sWV16F5YdA33O2US6ys9xSH5anxWlWzYbn0L/sGCnxxW9nIMeaaYgy cElGCR7VrCU5MTnFkN8lNkRwqsl9UFClK/iD4BtwmpDPGVnnKniX4RVE40WVT8s8jKoX aj2omEfMecUkwZflbt8W6frhaR2kZiKBxvyBR+6nacQmM+W02vIevrzdyy2EuAu5opDe SOAA== 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=PXrugCsf2R7X3B7nk4k21u2volfPHfyB6wFmlFAtHpY=; b=beS95idwwktyWeBS61+hthDgU7Oz1YA9Ci0EnPo1IAu0a6bGijJX7hI2X06mj3LauF sZQGabuOcfzqnmP0afLnVgeiBXHdef0g5mTBg2UqJLXvycoBy4TVWBxXOCpN0dMHwt9t s6IpTYKapKTCnZ1Gi2D4UZQhvY5l4kZ7SYWkCzKXG3nh9mhTba//nT5/IKBWNigzNRJh 0USB6R14AuQ0UKMKQIV9EGCD/QPzVkhf/J0JIEuByn9gtAHP5atbo7Ezn2ba+xjZsk/V IQeO5HyDFsqTBIdQ5H89+ZoaECQwBTMwMDYRkw2xtjEoIWtsP40w9PhZgnqH7AKx2wxY b17Q== 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 m8si15526444edv.543.2020.07.06.13.54.28; Mon, 06 Jul 2020 13:54: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 S1727924AbgGFUxw (ORCPT + 99 others); Mon, 6 Jul 2020 16:53:52 -0400 Received: from mga05.intel.com ([192.55.52.43]:16032 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGFUxw (ORCPT ); Mon, 6 Jul 2020 16:53:52 -0400 IronPort-SDR: hwa9+/vKRiCtvKB0/W8a8IxkACnrZdd/8a8zcnMjyPY4nzOtCZOzU0s4X9+poL/+SC+x5yx2xV ylRrrugK/mYw== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="232362466" X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="232362466" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 13:53:51 -0700 IronPort-SDR: E0A58mmh5vXpNDErkpyLxbGc8sINyC/s/Ii4eeqVyrD4JHY/4dT2OMtchvkAgBPnOyprVGh4NB 4o/1zfYamshg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="357567436" Received: from sarsteda-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.52.124]) by orsmga001.jf.intel.com with ESMTP; 06 Jul 2020 13:53:47 -0700 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org Cc: Jarkko Sakkinen , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Jerry Snitselaar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] Revert commit e918e570415c ("tpm_tis: Remove the HID IFX0102") Date: Mon, 6 Jul 2020 23:53:42 +0300 Message-Id: <20200706205342.21333-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 Removing IFX0102 from tpm_tis was not a right move because both tpm_tis and tpm_infineon use the same device ID. Revert the commit and add a remark about a bug caused by commit 93e1b7d42e1e ("[PATCH] tpm: add HID module parameter"). Fixes: e918e570415c ("tpm_tis: Remove the HID IFX0102") Reported-by: Peter Huewe Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm_tis.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index c58ea10fc92f..0b214963539d 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c @@ -235,9 +235,17 @@ static int tpm_tis_pnp_init(struct pnp_dev *pnp_dev, return tpm_tis_init(&pnp_dev->dev, &tpm_info); } +/* + * There is a known bug caused by 93e1b7d42e1e ("[PATCH] tpm: add HID module + * parameter"). This commit added IFX0102 device ID, which is also used by + * tpm_infineon but ignored to add quirks to probe which driver ought to be + * used. + */ + 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