Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp498597ybt; Mon, 6 Jul 2020 14:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztnvBqlkxUV9gkQFEaIOae9EnMn8fgCXrCpmWB1KVOEtFzYDRYd4ZNoNrgeX5znCoqCH07 X-Received: by 2002:a17:906:c0d9:: with SMTP id bn25mr35270755ejb.176.1594072247003; Mon, 06 Jul 2020 14:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594072246; cv=none; d=google.com; s=arc-20160816; b=iIuDLQ3LhS5HOlqWAHVUGeOj40sZbokzgR+OTQbqwP97A0U2LtCmMkwsTvI6zjy7c4 y3qS6AJVF1nI3sVLaqoUQBKnEo/kI/4Z5w6kfdgtG2B2a2CKGDBzSlNQKUxYTqtXScaN 0CmusLOTPqeGdJ3NajJQEvYZbS1qbcXkjqlrH02CjvwPBgTa6A1LFSqbulGKO+pl3nox Oi8DM+Re0cu1OVKTmPhGvDA34z/o5rogcQckiRY7f2fFVIEACglFURtznLjFVxIf5Isv Na2FeDMk/tehqGO+FiB/v4P48NRRCFNWo3uJrUv0lwZmS1CfBppxx2RULOpl9bdKx2Ea Lffw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=qRWR21MnKfXBkh6ZR/sB0rfgRbUwkmqSxMK2L6dCLXk=; b=iiZLnopBO70vfANEQvjNTXgzJxXFgaZqqtAjCeCUfw8XN/+zth0GIz6oXDbw5lHRUD j2lbyE1PJ+JSCxYJaxdET8SQnU/1LynyW5cdlv0u7sET/opVvkrKM6Elzo9nC3ah/wik aJak9qaHQmWipdaqPpTCShn/uqcT6pMbSCxfovGWecR6+rWo4IQln9jWgoWEkFU6JRhx lkjlPjD4FyliuaCJ+/M/a95na4QBQF2VyWIssTh+t1oUcB7dkn1fzUmgzFtWbp49tFpD 0RkIjHKF7D6JjBDoNuBy9dCW55HVRbZ/zpicAWHv5Rr5V7DxF51ItN9UQZz8GYumoGTC u9CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SZ4A9bju; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs25si12970939ejb.536.2020.07.06.14.50.22; Mon, 06 Jul 2020 14:50:46 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SZ4A9bju; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbgGFVrO (ORCPT + 99 others); Mon, 6 Jul 2020 17:47:14 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:28237 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725860AbgGFVrN (ORCPT ); Mon, 6 Jul 2020 17:47:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594072031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qRWR21MnKfXBkh6ZR/sB0rfgRbUwkmqSxMK2L6dCLXk=; b=SZ4A9bjussSm+Rv8xXmEJlEFye2iSk17QBSASDQIR6MZ4uVkfxZQA6SVSYyiXZvZOaCcLR P95dE8TPLoLgHAdi97t4iF7JJFXHZSVHpb/dE5RY7oqbWnxcfuS64lXdfBgiPnJumo2zCR 3sxos4SSqTKAhr2hAuLk8PnedmEgE3U= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-367-8y8PLX1dN2a_0WaFel6BdA-1; Mon, 06 Jul 2020 17:47:10 -0400 X-MC-Unique: 8y8PLX1dN2a_0WaFel6BdA-1 Received: by mail-qt1-f198.google.com with SMTP id 71so21268877qte.5 for ; Mon, 06 Jul 2020 14:47:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=qRWR21MnKfXBkh6ZR/sB0rfgRbUwkmqSxMK2L6dCLXk=; b=uaH+vuzdl9tlwEcInLOBCaCfY4HgOoK6XjFN8nIU1yvUBVylvcFzAmPBPaFigFZsYl JcoxAHLbXoTQDjSaBVmsmpB2BbekE8nmINIynv/HFfRu8bgLpfNUl4o209/bRVd5cCis erKyPqlGhDfH2F98dPrWSD1x7mkrLztuVEhQFZzEy+3zMxsD1OJ83Vnbvwp+2dEu2RVI GrpgbpHsKuDMoHp1Rhq0nHkvVArzTfy1BW+0NQ2wdLR5LIWuSJdwJ1AFLptCzyHjjUDA OkYM1cMro+NxAVgCN9igZdOrNiUD56xtsD3Z7xuY6CxGJyHlhyk0j+c9AVnBD4qFaqC2 zr7Q== X-Gm-Message-State: AOAM531ttHjnMxp1+kPufLEOhcx68OsjdaA6fh9QKwbeDk9m8DmExaWd W93O2qnofxiMHr+tHIYLWxNFpxbTp5VE3YGlSdBOt+jLKxCVN2D0mQAE1wh0CiLAin9fBdRZScS QxTsGLoh2joqO+rIjMqqMia0P X-Received: by 2002:a0c:fde4:: with SMTP id m4mr33810386qvu.97.1594072029904; Mon, 06 Jul 2020 14:47:09 -0700 (PDT) X-Received: by 2002:a0c:fde4:: with SMTP id m4mr33810377qvu.97.1594072029656; Mon, 06 Jul 2020 14:47:09 -0700 (PDT) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id x34sm15083272qtd.44.2020.07.06.14.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 14:47:08 -0700 (PDT) References: <20200706205342.21333-1-jarkko.sakkinen@linux.intel.com> User-agent: mu4e 1.4.10; emacs 26.3 From: Jerry Snitselaar To: Jarkko Sakkinen Cc: linux-integrity@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , open list Subject: Re: [PATCH] Revert commit e918e570415c ("tpm_tis: Remove the HID IFX0102") In-reply-to: <20200706205342.21333-1-jarkko.sakkinen@linux.intel.com> Date: Mon, 06 Jul 2020 14:47:07 -0700 Message-ID: <87k0zgwc2s.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jarkko Sakkinen @ 2020-07-06 13:53 MST: > 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 Reviewed-by: Jerry Snitselaar > --- > 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 */