Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp27249pxh; Thu, 7 Apr 2022 12:58:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweZ3T+DDpFDDyA0h570SCYQq12XDvmRJTEFf69oUui1CfhTIaQYhUrzPjr5EzcJNd2Ze5m X-Received: by 2002:a63:c10e:0:b0:381:6a51:6231 with SMTP id w14-20020a63c10e000000b003816a516231mr12486635pgf.189.1649361487193; Thu, 07 Apr 2022 12:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361487; cv=none; d=google.com; s=arc-20160816; b=0kdgSFpNuO9xKn5q3pLqM2+WC0Gx5AyA2DtQm2hECd4X65/avmhRFvghPqN3mwKpIZ FQ/ZA1A2bkzELo8YiAjvkTkGJz4xe+Fq4cxDJvOpjl8JFMnmmbLKL1BWQmn13g44Zdym GvoFyWLFWzXa7got2PbWAb2+5XldZ1exdINEnofRUPaPk5pFtLXvmI7VQY7PVE6e3nGI PxWemnXk3szRYGwFzLAMiCv29+IAOdnBZ/AhwUil/wJWuqpovv7KMa4m7ubKDT6K+rZf tW1DF0fPDmMeAzwlorauY0kq7Yl5mFxSW6a9rcc9a6SG1dWEqc1bymU5MBuoyOsa3y2k 4cKw== 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=1zrH+Ig9KZGn6a8jMH9j/YTpYklf3j0vedc54T6FD0M=; b=vSg54uUzYuRjHb0LMr9ulS0McHQ4JmhNxAbiO2i+3n+oDB9qWcyoIhWd0EmIGtJZR7 hZ4cviV9q0TBxYgGSRFYPksmVV13vamd1WcDUqx4wsDV9PtoHazia/4Pn/oOtZnolLSB A/KfuUDDWZe85WsnmqXl9nrysGOZuEucv6udTBckzazj0Vc0+myZ77VXrBcqtYNoh23l 4ifAp/7IJJPfqCTS+FPmQhPbmcISqwnKmVEBxSdwkULx90qbuv88DA3tZxH+p8Hsnf+4 mUkAh7VnhW3SXgcuzoNH5i/rn2oSA9sH0LCuHkkOQd2zauY2UepGvj+TqPozrzF47E+S 6fbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Cy5icd4t; 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 t21-20020a63eb15000000b00382250a328bsi19651818pgh.387.2022.04.07.12.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 12:58:07 -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=Cy5icd4t; 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8BB5427E841; Thu, 7 Apr 2022 12:25:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234233AbiDGLVv (ORCPT + 99 others); Thu, 7 Apr 2022 07:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233973AbiDGLVb (ORCPT ); Thu, 7 Apr 2022 07:21:31 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A381959F0; 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=1649330357; bh=1zrH+Ig9KZGn6a8jMH9j/YTpYklf3j0vedc54T6FD0M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Cy5icd4tSFxtPW3R2ttANLK793/56WcdmmVC/yQAJ5+i3l8/lzx1WsbmzJ7J0eIgf K6JDeAIi9Cxgq8NUmGNd1CaeX0Tc9BKRqSMPFNFzYTI1emvvt0qhnwLcuwuiNtr/7g BGvebzDwZy5ofeUAznJRAV2DQYs57N7wkQkUvQNo= 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 1M8QWA-1ngq0q3K3U-004WEt; 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 5/5] tpm: tpm_tis_spi_slb_9670: implement set_reset and unset_reset functions Date: Thu, 7 Apr 2022 13:18:49 +0200 Message-Id: <20220407111849.5676-6-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:FzMuKNvm6dS35SO6rkbhftmjLdUeXo2aqe2ZmdcqrQqrf0MokiI shHN1DzUjcnCv78nR1ksV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R764bOZfU/cstzH D/DWtzyOz2XGHopShDd0iFegqRpeUzH841T8xmdbrwhAmGdk2CEupOJL69zF6luhisWZ3U/yj 3ezj8dYuyxST5nOHcLwDtomAh1t6N5/oi3qV7byA8UXHx09W7vD5QAgLYWRnWhfd0I3pZZ76Z /ULt0+nKxC8vPP+bXvfkGwFkh/FeQbsA4yDhaV3HwXHeJDVQxykKMnEfqXkBHj0lL2K1rKltH zj94hhKx+OQ98o= 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 UHJvdmlkZSBpbXBsZW1lbnRhdGlvbnMgZm9yIHRoZSB0cG0gcGh5IG9wZXJhdGlvbnMgc2V0X3Jl c2V0IGFuZAp1bnNldF9yZXNldC4gVGFraW5nIHRoZSBjaGlwIG91dCBvZiByZXNldCByZXF1aXJl cyBhIGNlcnRhaW4gc2VxdWVuY2Ugb2YKbGluZSBhc3NlcnRpb25zIGFuZCBkZWFzc2VydGlvbnMg d2l0aCByZXNwZWN0aXZlIG1pbmltdW0gd2FpdCBpbnRlcnZhbHM6CgoJZGVhc3NlcnQgUlNUCgl3 YWl0IGF0IGxlYXN0IDYwIG1zCglhc3NlcnQgUlNUCgl3YWl0IGF0IGxlYXN0IDIgdXNlY3MKCWRl YXNzZXJ0IFJTVAoJd2FpdCBhdCBsZWFzdCA2MCBtcwoJYXNzZXJ0IFJTVAoJd2FpdCBhdCBsZWFz dCAyIHVzZWNzCglkZWFzc2VydCBSU1QKCXdhaXQgYXQgbGVhc3QgNjAgb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