Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98F7AC7618D for ; Wed, 15 Mar 2023 15:47:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232384AbjCOPrj (ORCPT ); Wed, 15 Mar 2023 11:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbjCOPrg (ORCPT ); Wed, 15 Mar 2023 11:47:36 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2084.outbound.protection.outlook.com [40.107.212.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C6E7B471; Wed, 15 Mar 2023 08:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QKIkfHnHfZ2SzCZwRCPIGxb2qSyzfJ2Gs8/61JRLVb5b5EA2s1zMGMsTI3ED1BDBSPdF9O3SmD0j08Ok2zqXQpOPXSFG3+hqtgqysMm+YVDOry4QNLIfnR9lwgGdwS3yP9tItwgl2yKtwan3/UUjj6aSL6JCMwzUjjqUkiZNFmwDGB73GrxGc5+WD4BBG1iad914qBeWSSqAHxlcwyYTofT4H98mbYqDe2Dxum4VnG3mDZo4kL/WZkPFeTCT+nhTmWHoIHEB2hVYwBDfMpZNMknkckxfoZsZrYY6fZ6m4NMOKEvRBkBkVdGKoXMuIJphcmmd8L5LuuUNJhHdUEPTLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aVDCCqANAqdvMzRq/FubMasicKudqtb4q4wgoyn/PHM=; b=jtCgRtxVHq/9Y4WOJapbnkY5VPhYNtGLYTlSk0lAKQqgpC+7mBoUEugTU9QMcqlxgzJwz45R11YIatOq7xR3jrHZjxlXMgLfNeoTIORs0+QIlDs8Jr2yNbq5iCid+ZD8D9MtNXncfv+NB6hGBgNTfwOf1l8JMPbM9/l8t8TKZJEGcUfsdsOl58DYhqwngVoB5ENqMZXDtR4H2sWgfpMznkRzm7ZoddBV5dIRSigjzlhnAiDQn6l8pPBhH6dk0WrKh6oUw8MSOeqHGcAH54BavqMA5r+YUi2uYdg0pddx55lDXOnhnmUBuUM6EpTDbtyo54KfMBKnhR+YohvGr3pGRw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aVDCCqANAqdvMzRq/FubMasicKudqtb4q4wgoyn/PHM=; b=QAEd/2gvIcgIhMql5xoYwEIxBNFLSYs07hbCSV2C9h7VqHtLWlFSYOqZ7edeheueJRx932gWrxCz4j5vW+lWfJnXK5tdLcbZr1ph4dyl8W7mDnWawoN6mryq9CPPBLPPbueiwMketkSRKTwRTZraJXj3NUxdRFSrXxvFIfnpYvWVXqrNryWArMfRNM39faioRHy6M2rN2mJ/iVTTfKxZUYcK50wD1uFILQOA88mmw01C9NNOmhc3LrdnzSz5hMn4OSGuiWEuKAur96cQHYOu5UNCBU4jWjM1QRr7NVkm3ockmj10OaRKrptDHCGLhu2f2DAyrCQ7MflB07t46YqRdA== Received: from DM4PR12MB5769.namprd12.prod.outlook.com (2603:10b6:8:60::6) by BL1PR12MB5350.namprd12.prod.outlook.com (2603:10b6:208:31d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.29; Wed, 15 Mar 2023 15:47:33 +0000 Received: from DM4PR12MB5769.namprd12.prod.outlook.com ([fe80::bca7:6774:36b1:78a0]) by DM4PR12MB5769.namprd12.prod.outlook.com ([fe80::bca7:6774:36b1:78a0%9]) with mapi id 15.20.6178.026; Wed, 15 Mar 2023 15:47:33 +0000 From: Krishna Yarlagadda To: Jarkko Sakkinen , "robh+dt@kernel.org" , "broonie@kernel.org" , "peterhuewe@gmx.de" , "jgg@ziepe.ca" , "krzysztof.kozlowski+dt@linaro.org" , "linux-spi@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "thierry.reding@gmail.com" , Jonathan Hunter , Sowjanya Komatineni , Laxman Dewangan Subject: RE: [Patch V8 2/3] tpm_tis-spi: Add hardware wait polling Thread-Topic: [Patch V8 2/3] tpm_tis-spi: Add hardware wait polling Thread-Index: AQHZTL4LmmU2weVzlkGZavw5z7vfj672LROAgAXjllA= Date: Wed, 15 Mar 2023 15:47:33 +0000 Message-ID: References: <20230302041804.24718-1-kyarlagadda@nvidia.com> <20230302041804.24718-3-kyarlagadda@nvidia.com> <01959c869e01075705cd436afa822f2586d0509c.camel@kernel.org> In-Reply-To: <01959c869e01075705cd436afa822f2586d0509c.camel@kernel.org> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR12MB5769:EE_|BL1PR12MB5350:EE_ x-ms-office365-filtering-correlation-id: b0bfdac7-a830-406d-ac5c-08db256c979e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: t+Fy00UxYLW7rHVCLt+N+L2OyjOcRx+fsy7iear3q8lofHLpjdkaExHfzp/kS7YSi3ymfQgf54jUbgyUxjJA1/qPJE3g58tWOZwHiK8ASSX1eMoj8INa+izppN+YTL12HK3rBI4nwFiwU4hHAU9Jz8i107Y36d3UX1WLIZum+roMvrepltTGHRgOANGzkIpPj8Ipjyb1IkfrwQVdnPDpzNbAk1TEap1GDytm/l5bpWtrKk63icm12fvnx2riYeG5t8bzo2+1/DSxBoL5TtgipPtDHBFB0J8WK32yh7NOf8yGWa7pV8RYMQ73BlPE0rTmS/n0MteoLF4UDtIOQML3JM0KlPjuDxBwexUjfjCe3CdfZ0sGlZjXaC3//3NI0W/kRk6bna2qJQOH+if2hK8ShtvvfdbVlKh4d2xjee0Hx3D1adOQXxGANHgmHR2z8tCM7unw5eTg7Iuj2Ke2zd+yucR/pc4k8sWW8sxgsTDjeDMIgbb+sjAH4HnhSVuVHn4HVIlvxqwLwB6/PH5R0HIM3Ys3+gTW1mbe9KLlt+eqZxCaiOngwDpjfa4QpafrU/wpHF2d+a11T35F5nTW9dURVwliYWh6/2EpxmfAmS952B3X87COSxW8/tQA4cnyMRlHi+82UYq2mWhDmHvRjyLGQtylQBP6qwJRE8dpxQUtcl7U1hEciNS9VLxtyr8b5zFRGoVjryRtuYQc85OBKvVOUolPrsQ5GcIQTP5rqMxcqXw= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5769.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(39860400002)(396003)(366004)(136003)(346002)(451199018)(5660300002)(7416002)(83380400001)(66446008)(478600001)(66556008)(7696005)(26005)(107886003)(53546011)(71200400001)(6506007)(9686003)(186003)(921005)(38070700005)(76116006)(4326008)(66476007)(52536014)(64756008)(8676002)(55016003)(33656002)(8936002)(41300700001)(66946007)(86362001)(316002)(110136005)(54906003)(38100700002)(122000001)(2906002);DIR:OUT;SFP:1101; x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hlNW5j?= =?utf-8?B?QlM4QzlMUTNhUDZEbDZJRXFDYlhYUjZMOXR3bFhUdFhwcjRWZkV5dGdyNUVY?= =?utf-8?B?MmJ0UUFTQXE2WCtha2xTYXpVQmJCb0hqbTNmcFhTUG9STFJIdTJlYSthMDMv?= =?utf-8?B?dTFURC92MWVFbjQxMmZpRmxNWDFDRE9CS0xuTHJYcHZXS3NxejRUd21ZM3p2?= =?utf-8?B?RDJuUTZXanFCNWZsbjgwTUtMWXRmVUJhcEFEbHB2VHJ6bTUrbldIbEVMa09h?= =?utf-8?B?eHdycURyL2NrMFNVVGUwNWdaQVJrZVhJd1dDWCtycC91YW15ZDQ5VG5uSVl0?= =?utf-8?B?eEZqOGdraldydXZ6WmRxVUFtMDY3WEw5STYwRkF0M0VXUWVGNENaMTZMNU5j?= =?utf-8?Q?XfgXyqgMxoyTYK3D7Wm0QBHDd?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5769.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0bfdac7-a830-406d-ac5c-08db256c979e X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2023 15:47:33.3355 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YPp/xmED/BluQIlqdFwpEv5aijHOcef26dfKUwFRHCEVX5acmr34VPus7jI8/Zff3fM9D9HIulunrHX18G9rdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5350 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZy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