Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp47457pxh; Thu, 7 Apr 2022 13:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRXIvRhsP2KAIQ3YAY69qZzmu5Z/QOSBTAS+l/Il8S+bQPMJfqttqmRMeNxzPa2I0GxB5k X-Received: by 2002:a17:903:2302:b0:157:1c5f:14f0 with SMTP id d2-20020a170903230200b001571c5f14f0mr1752271plh.138.1649363651114; Thu, 07 Apr 2022 13:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363651; cv=none; d=google.com; s=arc-20160816; b=FXE6lmcD/14Q/ezCsBe4GKZKrTwNvYILoxibHspYB9s6L4JlGdrfjQPrA7xe4oiq4J VVv7r+PGFcgwzWFZpFhzSDWAE6oL706SRltxEqtWtJagLrm4UIVsZrh9mV1yDUEnPfgs lLwPcGKZL2jepbEP0FJUQBZ81+kO0IyvIEkmJNXfk91AoUDMoNg0DBpYoNG6nf1mCvgo 2qUqSF8XTnwqTLSchXP5/yXscNad/a1CKlZ5qca98WC/d46i+lIIPdVWlQdzEF59PbiF OXP/FlYWjlqJ+iAXYM/GjHE+IAZIA0bMQNMiAtFc9R7JerEWhsTpNIVZrbKq2wElSkiH I7Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qXAcVdb5+U1V68gy4WuSKtITy5q5Oa2Czfs+ThvCSaY=; b=CczVM0JykhKa7FZapKptAr9Kh67iLBkmhhd0m/NrQpQUeBurWpu4b4KfxB1tnObmpb TwyR1B9EFntQscdcwriqM6obL5jBfYGYRwUrDOh+Ulhdu2BLdpWRFvrZ9ybHuDHYB2dR 161T6IYptXQzhvw0T2HmqIK7FwSuNxzl+h/Ew9+ETCMJTmoVPqeIdesmRVaO0b2BVhN6 KHtKaBAkTjqyS9NSff6OhuLRCUGNCI97pNTB3qOFpPa040H0g30oVrAqJYefmCWAWM3q 8S/wuTJ1po76i9w4iCLLRviSyU/v+MJGriFNjtMUTAJUbjB7DDM8fusQgk2ZyuSkF3sk gZMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=OIgX8ZVL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j192-20020a638bc9000000b0039cec746e3esi1117476pge.331.2022.04.07.13.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:34:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=OIgX8ZVL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5BF44396E38; Thu, 7 Apr 2022 12:46:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244736AbiDGLVy (ORCPT + 99 others); Thu, 7 Apr 2022 07:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234370AbiDGLVb (ORCPT ); Thu, 7 Apr 2022 07:21:31 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97BD01959F1; Thu, 7 Apr 2022 04:19:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649330356; bh=qXAcVdb5+U1V68gy4WuSKtITy5q5Oa2Czfs+ThvCSaY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=OIgX8ZVLYVBbUVTKosMn65lDqQV7nNJbX/gyX9ND4tpdrNm9OR9+xMECcaHs61ghf +GlwhfwIO9XFovd2woM6UUy3ukyobi7n6FFcn8+z9qpuseTDg8zXO8gY3fa20rHp8m jvWkLmj5HV16IKB3M1pulz858JfUDv5e89023LOk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.2.23]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M89Gj-1ngZAF0f1n-005LBY; Thu, 07 Apr 2022 13:19:16 +0200 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca, =robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, stefanb@linux.ibm.com, p.rosenberger@kunbus.com, lukas@wunner.de, Lino Sanfilippo Subject: [PATCH 3/5] tpm: tpm_tis: get optionally defined reset gpio Date: Thu, 7 Apr 2022 13:18:47 +0200 Message-Id: <20220407111849.5676-4-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407111849.5676-1-LinoSanfilippo@gmx.de> References: <20220407111849.5676-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:VOa6nrOx58PxejZldnp8Sgli5Ic8TJYGKO/scam+aIiW/usfP3N Z7lJIkvmgfr4kctD3RHvlgy6npl6/+HP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+xRhuAl ECNHde1IPy3YTnEletTioxWkP8dM/Au8y68pAPxP7qYSFGh9cpQpWx24DbJ163y2zTi2yJBZW svH2AEq9ewzjLsIrHeFjd9wGXQLUJtSYK9PuVg487YCBteSURFU/2HUGYQQEhvKk4eup2EZrp MODTjvqNeHHocCIdOWGuxtVc1Z8vDJBIeWPcRFToYj6d1rJXALt81cR3PZxt1NjhSv49g8F54 zgj5bjOwHZnXoE= X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MIME_BASE64_TEXT, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org R2V0IHRoZSBvcHRpb25hbGx5IHNwZWNpZmllZCByZXNldCBncGlvLiBUaGlzIHByb3BlcnR5IGNh biBiZSBzZXQgd2l0aCB0aGUKY29uLWlkICJyZXNldC1ncGlvcyIuCgpTaWduZWQtb2ZmLWJ5OiBM aW5vIFNhbmZpbGlwcG8gPExpbm9TYW5maWxpcHBvQGdteC5kZT4KLS0tCiBkcml2ZXJzL2NoYXIv dHBtL3RwbV90aXNfY29yZS5jIHwgMjAgKysrKysrKysrKysrKysrKysrKysKIGRyaXZlcnMvY2hh ci90cG0vdHBtX3Rpc19jb3JlLmggfCAgMSArCiAyIGZpbGVzIGNoYW5nZWQsIDIxIGluc2VydGlv bnMoKykKCmRpZmYgLS1naXQgYS9kcml2ZXJzL2NoYXIvdHBtL3RwbV90aXNfY29yZS5jIGIvZHJp dmVycy9jaGFyL3RwbS90cG1fdGlzX2NvcmUuYwppbmRleCAxMWU1ZTA0NWYzYTcuLjg5YmZlZTNj ZmIxOCAxMDA2N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