Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1062095rdb; Mon, 19 Feb 2024 03:07:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlEMh2U38l5sB3bJOF5/lGRsrD+iS1zK5tb5TVdPLR78MN2e+4nO2vw1MB/2CtCIEemxTby+8L7UAhROz3WR8XB9zj2ViOxldepDwH+Q== X-Google-Smtp-Source: AGHT+IGvZVHFgSUMQPycAeaoggOz0eK6x4Wg05X8o7Ebd37pXtw8GxAhAADlVp1a4kPyyh5amrvH X-Received: by 2002:a19:7614:0:b0:512:bdec:c615 with SMTP id c20-20020a197614000000b00512bdecc615mr400188lff.62.1708340831920; Mon, 19 Feb 2024 03:07:11 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x18-20020a05640226d200b00563ee497f2csi2273071edd.308.2024.02.19.03.07.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:07:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@leica-geosystems.com header.s=selector1 header.b=GiWY6Jek; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-71160-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=leica-geosystems.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 002031F23EA0 for ; Mon, 19 Feb 2024 10:58:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D595028E2E; Mon, 19 Feb 2024 10:58:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="GiWY6Jek" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2072.outbound.protection.outlook.com [40.107.8.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01BC428DBD; Mon, 19 Feb 2024 10:58:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.72 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708340311; cv=fail; b=WtbK8YSNTSv7BRqmVR6G+hI2XrkUhYe6K4XaVocYN+xn/MmNsiSPMyOndi51ZhepxoKjK4UbDQMGKx1zZDxFD0azrsgAd6n0I6EX70SmpgmkoRv6GqXMRjKCliO6P944zQz4VLqR5XztrRUtcRWQ3q+Bzkmi+ZPGIn4RJg4+QgQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708340311; c=relaxed/simple; bh=KM9mf4dN5iVYvilYVk2wg13Gvs/j/0rSc2KphTtOjDo=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=CmvBfOm9BUSfkjCyVf70FHTUErzxEc/rjqzFnEq+L7kvBE5F2ZrrflppNBbHv8bcEmvyYI2ij4jvmpqXnCSoarVQsOSrbV5dih8lFJyb5UJvSJ6KzIvqCnF4iILpemgJPl17znW+P3o6uyRN0HMhXJl/dDKsXOapLJfXQ+F0xek= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com; spf=fail smtp.mailfrom=leica-geosystems.com; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b=GiWY6Jek; arc=fail smtp.client-ip=40.107.8.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=leica-geosystems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=So679a+306JQkA7cH+GgkZwHVtoIrv9zmAHYDCNBU2XSHGZZRrqHslHoYbdBLnUPnFYFaVcM1uiO/38XYyFIN666Xfr03D+8pPcW9Qg1ob3mgpfNJfp8xmW0UvTtqpCKp2Q4a6aMpt9z1LU19ZgNgolcXjoFzMZVD9inFfuOVPP4lz6BYG33Sc9Nz6PhOmwx5glFAlVhFi3a4Jc34wtuVsw21MuQ96BUzAvd3tA/VdtnNOwa1cZ25hugYAfjDKXYmU/x6FyAvqTPc1Y5WZB/fjMoewAkyDhKASYutNLhZDvJLVuv0KetygRmR2Tk6t+PVJQcXY+xrIKVvyS6eEW4Fg== 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=KM9mf4dN5iVYvilYVk2wg13Gvs/j/0rSc2KphTtOjDo=; b=mJyFmuPcK4UGQXkDapqVvh9AOBNWGSalCRkBglBG9VhkGgN+zsMVXAUjWoszXzVVmV0QsA0BV8MbrrbNPBvz6TZViMP7CWeFS8ZSLwMYqZnWDg4b0R0v5dmUZXjTsb6Xav0WYKAk3HsG3206hU/We5ssSY658T/YjFGQ6uXaC55kTPFjmc80/2IUu1rAhAbbWv3okKrxq2UV1ketx5GcJ0BgsRmcYKnmKNxYO1puFGn/X3Yakrku8zRa5ym7pgxMo+uBogzL1Iifeh6bR1/32u0+lq+ZKRzAzjJwEeiIz5u5OFQkAaz1ZB9dwC+IHswQc1HcDp7P4UITne9vpQIxmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=leica-geosystems.com; dmarc=pass action=none header.from=leica-geosystems.com; dkim=pass header.d=leica-geosystems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KM9mf4dN5iVYvilYVk2wg13Gvs/j/0rSc2KphTtOjDo=; b=GiWY6Jekealakyw7zKzhNiQrYpnFDPyqirNCD/UYYgxKEFvtOC4tGFePpB4wVDvAz14GbHi5o7jAJyKWffkKCZcU8vR6EFUIkPfUg82r3AAqQxzC7dZ8aWA7y+JhRzn8M5LY4DaKsDptyeusVy3chOpzJbi5plaLnalecGi2MOk= Received: from AM8PR06MB7137.eurprd06.prod.outlook.com (2603:10a6:20b:1da::16) by VI1PR06MB6397.eurprd06.prod.outlook.com (2603:10a6:800:126::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.32; Mon, 19 Feb 2024 10:58:24 +0000 Received: from AM8PR06MB7137.eurprd06.prod.outlook.com ([fe80::5e59:c749:a76:e8f3]) by AM8PR06MB7137.eurprd06.prod.outlook.com ([fe80::5e59:c749:a76:e8f3%5]) with mapi id 15.20.7292.036; Mon, 19 Feb 2024 10:58:23 +0000 From: SHUKLA Mamta Ramendra To: Kamel Bouhara , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Marco Felsch , Jeff LaBundy CC: POPESCU Catalin , "mark.satterthwaite@touchnetix.com" , Thomas Petazzoni , Gregory Clement , GEO-CHHER-bsp-development Subject: Re: [PATCH v8 3/3] Input: Add TouchNetix axiom i2c touchscreen driver Thread-Topic: [PATCH v8 3/3] Input: Add TouchNetix axiom i2c touchscreen driver Thread-Index: AQHaYxwkEnpb0rK/R0GUknQ7T3Vb07ERfuMA Date: Mon, 19 Feb 2024 10:58:22 +0000 Message-ID: References: <20240219101221.129750-1-kamel.bouhara@bootlin.com> <20240219101221.129750-4-kamel.bouhara@bootlin.com> In-Reply-To: <20240219101221.129750-4-kamel.bouhara@bootlin.com> Accept-Language: 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=leica-geosystems.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR06MB7137:EE_|VI1PR06MB6397:EE_ x-ms-office365-filtering-correlation-id: a4d762b5-ae40-4474-ca7c-08dc3139b0d5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 96SQeQoZHQIQyArzeY/iPBtTc9mtYMB/Z6l7d2VHL7MGY+9H+J4V5xWJ5Mvwu0wEbQ5aznICrLPLY5d63k4gmJJxEfFcXkRcval4LeYihpQmLpa/E87zCZ7FuF4O5LaEoOMXBxtN8+3ydFS+jTqN1qMn1Gjah/g7sip9PmPHLEPlAKhFGaKG43GT1UmU7xBRhA5+PHtQh8VAvN9Z3xkTmGcoWpT5rR+c83kvDlQyrd4C+ZgESsa0v1XLQzILGpI0/e0+K1fidmzuT0RGP3OkXK1fxDPzTxTCfBll6yz7rr2P6sjU/+Vfpes2s9CBgv/ZNWYH3pqiz27nOf+AB64Bc5AqJ3fEVMPtFyHmkT9CcnquAW04zJlWSyjmsrjDNrjTwixzp0fDDShNaR2vhTpwenWGHang2uokG90l81W4ducrYP3wqVpuAgKil/okYXPETiJMkHMhwfXG63A1CK271yxN8QPxM/581NdbZI/wwdqfejUJKCkb/G21eHLKImT6sjua64BsCA+IjOVh2yAbMH9vX5lEF+mIo3UN4OtZ0GPWr3kwNoEaUZSYba2p4gtGNc34GeCGX+Wj1PLr+D3FHcpsAVr1DOHp0DbGfiXVH9PK2ki7iqr0JhPyNWJnC7XV+hWro6LC25Q2BZnA59AmBA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM8PR06MB7137.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38070700009)(921011);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cGxZY1pnV1ZiSWZUQnJKNGRVNCtMWnJDRFJVZy9FS093U3FtSHF2aWhWeE4x?= =?utf-8?B?bHlKcEEwRVV3Q3MrMVFkMzA0L1NUL2FTQjVMSi9rL3hiRU9WQWZWRUJDNGd2?= =?utf-8?B?Y0NMUmtvU0d2dWc5ckR3alBvNDFKRTdoVDA1cHhjUGc2MkVCQjJXVll1L0I1?= =?utf-8?B?b0h6NzY4c3B0NDVIRzZFdEt1ZFhkUUdiM3U3QzhGQTJ3QVBvQStBUHhrYVRR?= =?utf-8?B?TVZ1Q1BndGJIWnNxL3JsMEZWVDhaa0VoYWR0cm9sOFhCYm1PcGVWWEVxYmV4?= =?utf-8?B?eVFqUlRjQ25jL1R2WFJCZFQxaTVwVmk4d29XMm1BVGlpR0dTWjRhM3dLOER4?= =?utf-8?B?ekpIbjJOSFlLaEZSRHBxUHAxcStIK3VTaWxWcE1YdzFIcUdDR2wva0dLOVRS?= =?utf-8?B?QlR1RXhYWTE5VUo1MlBkYk02VHJVOWx2dDdLVUkwcW1aeUFmcDFwaW1WQmxW?= =?utf-8?B?V3RhclRlZlpzRmNVYXY2Q0pEN2l1T2RhUEdsWDhQQ09Td2JBLytab08vOHhF?= =?utf-8?B?R3o3b0F1cStRUDdHdVhpM0NwQ0xTZk4rcjFBM3lsRmpIV2lTQ2xJY1l5ZE9q?= =?utf-8?B?ZTR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8?B?cXVSYkErdTNBbW5nMkI3R2xrdE1KNlprNXF0a2RCNHpTUmdXaE1ZZ3Bqb2Zn?= =?utf-8?B?aXY0cEZ5L2ZTMHZPc0NUcTVIdmxTeTZZTkhzU1gvM0VkNEJETjZNaUpkc01R?= =?utf-8?B?WW4yd1BuMngxQkhMZC80VjF3K1ZobytXbU9EM3YyQkdIelFKRHhocHJzSnVV?= =?utf-8?B?K1FUaHl1d290QWowZGx6UXhac21lbncyUWNWdGhOZ0ZZVkdxQ3BjSCsyUVV1?= =?utf-8?B?VHVSZytHMjBHM21IdG9PSnlrbVFtUkd2dzFMQ2w0Q0s1ekdreWY5NHBxNExT?= =?utf-8?B?UDg1b1BaVVhPYXVQUVpwN2FWdmpWSkpqN0RiMUJ5dnM5c0pmVXJsVEpIOXYw?= =?utf-8?B?cUNZMHZCYkNkUEZVdFl2N2gwTkhzNXdDQW9QYzNWa3dDQ0VvcDc4cGV4V25H?= =?utf-8?B?U29NSUkvKzMrY01YZGY4K1F4dWRxbm1HdmxLUGJLK3ZJRHIzaHpBTDZrWEFU?= =?utf-8?B?eU1EK1loWkorYnhvVFh6V0N2UVF2MWtISTNTQ2ZrRU5NNnlhQjZOOUYrTll3?= =?utf-8?B?N0JVSTdvYnBNRENLbUlYd1NNVkQ1SVAyeVVKbDdQczFhNlI5cEVjZjRSVUlh?= =?utf-8?B?MDdyR1Azdjg1Q3NJOVdNaXp6QWhLSHVXWi9DWUZOYUNCaWxMM1VBQWIrSlU0?= =?utf-8?B?UUE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <0096A4011045354DA9472205C057A15C@eurprd06.prod.outlook.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR06MB7137.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4d762b5-ae40-4474-ca7c-08dc3139b0d5 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2024 10:58:22.9027 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VNemQ7hTmDGmNvpCPCp/hQG+TyGcjAAqUBUUKcVzAQJY7mZb67irPelJDwPOjxbK7uQgOEp7/CzRcwQoWtKbejDUYXhhTY9JeFDpYpzbFXdDxW3WGX5mtq+O+702qaNG X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB6397 DQoNCkhlbGxvIEthbWVsLA0KDQpUaGFua3MgZm9yIHY4Lg0KDQpPbiAxOS4wMi4yNCAxMToxMiwg S2FtZWwgQm91aGFyYSB3cm90ZToNCg0KPiBBZGQgYSBuZXcgZHJpdmVyIGZvciB0aGUgVG91Y2hO ZXRpeCdzIGF4aW9tIGZhbWlseSBvZg0KPiB0b3VjaHNjcmVlbiBjb250cm9sbGVycy4gVGhpcyBk cml2ZXIgb25seSBzdXBwb3J0cyBpMmMNCj4gYW5kIGNhbiBiZSBsYXRlciBhZGFwdGVkIGZvciBT UEkgYW5kIFVTQiBzdXBwb3J0Lg0KPiANCj4gU2lnbmVkLW9mZi1ieTogS2FtZWwgQm91aGFyYSA8 a2FtZWwuYm91aGFyYUBib290bGluLmNvbT4NCj4gLS0tDQo+ICAgTUFJTlRBSU5FUlMgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgIDEgKw0KPiAgIGRyaXZlcnMvaW5wdXQvdG91 Y2hzY3JlZW4vS2NvbmZpZyAgICAgICAgICAgIHwgIDEyICsNCj4gICBkcml2ZXJzL2lucHV0L3Rv dWNoc2NyZWVuL01ha2VmaWxlICAgICAgICAgICB8ICAgMSArDQo+ICAgZH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OCBzdGFydF9wYWdlID0g cnhfZGF0YVtvZmZzZXQgKyAxXTsNCj4gKyAgICAgICAgICAgICAgIHU4IG51bV9wYWdlcyA9IHJ4 X2RhdGFbb2Zmc2V0ICsgMl07DQo+ICsgICAgICAgICAgICAgICB1MzIgbWF4X29mZnNldCA9ICgo cnhfZGF0YVtvZmZzZXQgKyAzXSAmIEFYSU9NX1BBR0VfT0ZGU0VUX01BU0spICsgMSkgKiAyOw0K PiArDQo+ICsgICAgICAgICAgICAgICB1c2FnZV90YWJsZVtpZF0uaXNfcmVwb3J0ID0gIW51bV9w YWdlczsNCj4gKw0KPiArICAgICAgICAgICAgICAgLyogU3RvcmUgdGhlIGVudHJ5IGludG8gdGhl IHVzYWdlIHRhYmxlICovDQo+ICsgICAgICAgICAgICAgICB1c2FnZV90YWJsZVtpZF0uaWQgPSBp ZDsNCj4gKyAgICAgICAgICAgICAgIHVzYWdlX3RhYmxlW2lkXS5zdGFydF9wYWdlID0gc3RhcnRf cGFnZTsNCj4gKyAgICAgICAgICAgICAgIHVzYWdlX3RhYmxlW2lkXS5udW1fcGFnZXMgPSBudW1f cGFnZXM7DQo+ICsNCj4gKyAgICAgICAgICAgICAgIGRldl9kYmcodHMtPmRldiwgIlVzYWdlIHUl MDJ4IEluZm86ICUqcGhcbiIsIGlkLCBBWElPTV9VMzFfQllURVNfUEVSX1VTQUdFLA0KPiArICAg ICAgICAgICAgICAgICAgICAgICAmcnhfZGF0YVtvZmZzZXRdKTsNCj4gKw0KPiArICAgICAgICAg ICAgICAgLyogSWRlbnRpZnkgdGhlIG1heCByZXBvcnQgbGVuZ3RoIHRoZSBtb2R1bGUgd2lsbCBy ZWNlaXZlICovDQo+ICsgICAgICAgICAgICAgICBpZiAodXNhZ2VfdGFibGVbaWRdLmlzX3JlcG9y dCAmJiBtYXhfb2Zmc2V0ID4gbWF4X3JlcG9ydF9sZW4pDQo+ICsgICAgICAgICAgICAgICAgICAg ICAgIG1heF9yZXBvcnRfbGVuID0gbWF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FzZSBBWElPTV9UQVJHRVRf U1RBVEVfUFJPWDoNCj4gKyAgICAgICAgICAgICAgIGlmICghdGFyZ2V0X3ByZXZfc3RhdGUtPmlu c2VydCkNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ICsgICAgICAgICAgICAg ICB0YXJnZXRfcHJldl9zdGF0ZS0+aW5zZXJ0ID0gZmFsc2U7DQo+ICsNCj4gKyAgICAgICAgICAg ICAgIGlmICghaWQpDQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGlucHV0X3JlcG9ydF9rZXko aW5wdXRfZGV2LCBCVE5fVE9VQ0gsIDApOw0KPiArDQo+ICsgICAgICAgICAgICAgICBpbnB1dF9t dF9yZXBvcnRfc2xvdF9pbmFjdGl2ZShpbnB1dF9kZXYpOw0KPiArICAgICAgICAgICAgICAgLyoN Cj4gKyAgICAgICAgICAgICAgICAqIG1ha2Ugc3VyZSB0aGUgcHJldmlvdXMgY29vcmRpbmF0ZXMg YXJlDQo+ICsgICAgICAgICAgICAgICAgKiBhbGwgb2ZmIHNjcmVlbiB3aGVuIHRoZSBmaW5nZXIg Y29tZXMgYmFjaw0KPiArICAgICAgICAgICAgICAgICovDQo+ICsgICAgICAgICAgICAgICB0YXJn ZXQtPnggPSA2NTUzNTsNCj4gKyAgICAgICAgICAgICAgIHRhcmdldC0+eSA9IDY1NTM1Ow0KPiAr ICAgICAgICAgICAgICAgdGFyZ2V0LT56ID0gQVhJT01fUFJPWF9MRVZFTDsNCj4gKyAgICAgICAg ICAgICAgIGJyZWFrOw0KPiArICAgICAgIGNhc2UgQVhJT01fVEFSR0VUX1NUQVRFX0hPVkVSOg0K PiArICAgICAgIGNhc2UgQVhJT01fVEFSR0VUX1NUQVRFX1RPVUNISU5HOg0KPiArICAgICAgICAg ICAgICAgdGFyZ2V0X3ByZXZfc3RhdGUtPmluc2VydCA9IHRydWU7DQo+ICsgICAgICAgICAgICAg ICBpbnB1dF9yZXBvcnRfYWJzKGlucHV0X2RldiwgQUJTX01UX1RSQUNLSU5HX0lELCBpZCk7DQo+ ICsgICAgICAgICAgICAgICBpbnB1dF9yZXBvcnRfYWJzKGlucHV0X2RldiwgQUJTX01UX1BPU0lU SU9OX1gsIHRhcmdldC0+eCk7DQo+ICsgICAgICAgICAgICAgICBpbnB1dF9yZXBvcnRfYWJzKGlu cHV0X2RldiwgQUJTX01UX1BPU0lUSU9OX1ksIHRhcmdldC0+eSk7DQo+ICsNCj4gKyAgICAgICAg ICAgICAgIGlmIChjdXJyZW50X3N0YXRlID09IEFYSU9NX1RBUkdFVF9TVEFURV9UT1VDSElORykg ew0KPiArICAgICAgICAgICAgICAgICAgICAgICBpbnB1dF9yZXBvcnRfYWJzKGlucHV0X2Rldiwg QUJTX01UX0RJU1RBTkNFLCAwKTsNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgaW5wdXRfcmVw b3J0X2FicyhpbnB1dF9kZXYsIEFCU19ESVNUQU5DRSwgMCk7DQo+ICsgICAgICAgICAgICAgICAg ICAgICAgIGlucHV0X3JlcG9ydF9hYnMoaW5wdXRfZGV2LCBBQlNfTVRfUFJFU1NVUkUsIHRhcmdl dC0+eik7DQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGlucHV0X3JlcG9ydF9hYnMoaW5wdXRf ZGV2LCBBQlNfUFJFU1NVUkUsIHRhcmdldC0+eik7DQo+ICsgICAgICAgICAgICAgICB9IGVsc2Ug ew0KPiArICAgICAgICAgICAgICAgICAgICAgICBpbnB1dF9yZXBvcnRfYWJzKGlucHV0X2Rldiwg QUJTX01UX0RJU1RBTkNFLCAtdGFyZ2V0LT56KTsNCj4gKyAgICAgICAgICAgICAgICAgICAgICAg aW5wdXRfcmVwb3J0X2FicyhpbnB1dF9kZXYsIEFCU19ESVNUQU5DRSwgLXRhcmdldC0+eik7DQo+ ICsgICAgICAgICAgICAgICAgICAgICAgIGlucHV0X3JlcG9ydF9hYnMoaW5wdXRfZGV2LCBBQlNf TVRfUFJFU1NVUkUsIDApOw0KPiArICAgICAgICAgICAgICAgICAgICAgICBpbnB1dF9yZXBvcnRf YWJzKGlucHV0X2RldiwgQUJTX1BSRVNTVVJFLCAwKTsNCj4gKyAgICAgICAgICAgICAgIH0NCj4g Kw0KPiArICAgICAgICAgICAgICAgaWYgKCFpZCkNCj4gKyAgICAgICAgICAgICAgICAgICAgICAg aW5wdXRfcmVwb3J0X2tleShpbnB1dF9kZXYsIEJUTl9UT1VDSCwgKGN1cnJlbnRfc3RhdGUgPT0N Cj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBWElPTV9UQVJHRVRf U1RBVEVfVE9VQ0hJTkcpKTsNCj4gKyAgICAgICAgICAgICAgIGJyZWFrOw0KPiArICAgICAgIGRl ZmF1bHQ6DQo+ICsgICAgICAgICAgICAgICBicmVhazsNCj4gKyAgICAgICB9DQo+ICsNCj4gKyAg ICAgICB0YXJnZXRfcHJldl9zdGF0ZS0+c3RhdGUgPSBjdXJyZW50X3N0YXRlOw0KPiArICAgICAg IHRhcmdldF9wcmV2X3N0YXRlLT54ID0gdGFyZ2V0LT54Ow0KPiArICAgICAgIHRhcmdldF9wcmV2 X3N0YXRlLT55ID0gdGFyZ2V0LT55Ow0KPiArICAgICAgIHRhcmdldF9wcmV2X3N0YXRlLT56ID0g dGFyZ2V0LT56Ow0KPiArDQo+ICsgICAgICAgcmV0dXJuIHRydWU7DQo+ICt9DQo+ICsNCj4gKy8q DQo+ICsgKiBVNDEgaXMgdGhlIG91dHB1dCByZXBvcnQgb2YgdGhlIDJEIENUUyBhbmQgY29udGFp bnMgdGhlIHN0YXR1cyBvZiB0YXJnZXRzDQo+ICsgKiAoaW5jbHVkaW5nIGNvbnRhY3RzIGFuZCBw cmUtY29udGFjdHMpIGFsb25nIHdpdGggdGhlaXIgWCxZLFogdmFsdWVzLg0KPiArICogV2hlbiBh IHRhcmdldCBoYXMgYmVlbiByZW1vdmVkIChubyBsb25nZXIgZGV0ZWN0ZWQpLA0KPiArIC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jcmNf Y2FsYyAhPSBjcmNfcmVwb3J0KSB7DQo+ICsgICAgICAgICAgICAgICBkZXZfZXJyKGRldiwNCj4g KyAgICAgICAgICAgICAgICAgICAgICAgIkNSQyBtaXNtYXRjaCEgRXhwZWN0ZWQ6ICUjeCwgQ2Fs Y3VsYXRlZCBDUkM6ICUjeC5cbiIsDQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGNyY19yZXBv cnQsIGNyY19jYWxjKTsNCj4gKyAgICAgICAgICAgICAgIHJldHVybiAtRUlOVkFMOw0KPiArICAg ICAgIH0NCj4gKw0KPiArICAgICAgIHN3aXRjaCAocmVwb3J0X2RhdGFbMV0pIHsNCj4gKyAgICAg ICBjYXNlIEFYSU9NX1VTQUdFXzJEQ1RTX1JFUE9SVF9JRDoNCj4gKyAgICAgICAgICAgICAgIGlm IChheGlvbV9wcm9jZXNzX3U0MV9yZXBvcnQodHMsICZyZXBvcnRfZGF0YVsxXSkpIHsNCj4gKyAg ICAgICAgICAgICAgICAgICAgICAgaW5wdXRfbXRfc3luY19mcmFtZShpbnB1dF9kZXYpOw0KPiAr ICAgICAgICAgICAgICAgICAgICAgICBpbnB1dF9zeW5jKGlucHV0X2Rldik7DQo+ICsgICAgICAg ICAgICAgICB9DQo+ICsgICAgICAgICAgICAgICBicmVhazsNCj4gKw0KPiArICAgICAgIGNhc2Ug QVhJT01fVVNBR0VfMkFVWF9SRVBPUlRfSUQ6DQo+ICsgICAgICAgICAgICAgICAvKiBUaGlzIGlz IGFuIGF1eCByZXBvcnQgKGZvcmNlKSAqLw0KPiArICAgICAgICAgICAgICAgYXhpb21fcHJvY2Vz c191NDZfcmVwb3J0KHRzLCAmcmVwb3J0X2RhdGFbMV0pOw0KPiArICAgICAgICAgICAgICAgaW5w dXRfbXRfc3luYyhpbnB1dF9kZXYpOw0KPiArICAgICAgICAgICAgICAgaW5wdXRfc3luYyhpbnB1 dF9kZXYpOw0KPiArICAgICAgICAgICAgICAgYnJlYWs7DQo+ICsNCj4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2xlZXAoQVhJT01fU1RBUlRVUF9USU1FX01TKTsNCj4gK30NCj4gKw0KPiArc3RhdGljIGlu dCBheGlvbV9pMmNfcHJvYmUoc3RydWN0IGkyY19jbGllbnQgKmNsaWVudCkNCj4gK3sNCj4gKyAg ICAgICBzdHJ1Y3QgZGV2aWNlICpkZXYgPSAmY2xpZW50LT5kZXY7DQo+ICsgICAgICAgc3RydWN0 IGlucHV0X2RldiAqaW5wdXRfZGV2Ow0KPiArICAgICAgIHN0cnVjdCBheGlvbV9kYXRhICp0czsN Cj4gKyAgICAgICB1MzIgcG9sbF9pbnRlcnZhbDsNCj4gKyAgICAgICBpbnQgdGFyZ2V0Ow0KPiAr ICAgICAgIGludCBlcnJvcjsNCj4gKw0KPiArICAgICAgIHRzID0gZGV2bV9remFsbG9jKGRldiwg c2l6ZW9mKCp0cyksIEdGUF9LRVJORUwpOw0KPiArICAgICAgIGlmICghdHMpDQo+ICsgICAgICAg ICAgICAgICByZXR1cm4gLUVOT01FTTsNCj4gKw0KPiArICAgICAgIGkyY19zZXRfY2xpZW50ZGF0 YShjbGllbnQsIHRzKTsNCj4gKyAgICAgICB0cy0+Y2xpZW50ID0gY2xpZW50Ow0KPiArICAgICAg IHRzLT5kZXYgPSBkZXY7DQo+ICsNCj4gKyAgICAgICB0cy0+cmVnbWFwID0gZGV2bV9yZWdtYXBf aW5pdF9pMmMoY2xpZW50LCAmYXhpb21faTJjX3JlZ21hcF9jb25maWcpOw0KPiArICAgICAgIGVy cm9yID0gUFRSX0VSUl9PUl9aRVJPKHRzLT5yZWdtYXApOw0KPiArICAgICAgIGlmIChlcnJvcikg ew0KPiArICAgICAgICAgICAgICAgZGV2X2VycihkZXYsICJGYWlsZWQgdG8gaW5pdGlhbGl6ZSBy ZWdtYXA6ICVkXG4iLCBlcnJvcik7DQo+ICsgICAgICAgICAgICAgICByZXR1cm4gZXJyb3I7DQo+ ICsgICAgICAgfQ0KPiArDQo+ICsgICAgICAgdHMtPnJlc2V0X2dwaW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gICAgICAgICAgICBpZiAoZXJyb3IpDQo+ICsgICAgICAgICAgICAg ICAgICAgICAgIHJldHVybiBkZXZfZXJyX3Byb2JlKCZjbGllbnQtPmRldiwgZXJyb3IsDQo+ICsg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJGYWlsZWQgdG8gZW5h YmxlIHZkZGEgcmVndWxhdG9yXG4iKTsNCj4gKyAgICAgICAgICAgICAgIG1zbGVlcChBWElPTV9T VEFSVFVQX1RJTUVfTVMpOw0KPiArICAgICAgIH0NCj4gKw0KPiArICAgICAgIGVycm9yID0gYXhp b21fZGlzY292ZXIodHMpOw0KPiArICAgICAgIGlmIChlcnJvcikNCj4gKyAgICAgICAgICAgICAg IHJldHVybiBkZXZfZXJyX3Byb2JlKGRldiwgZXJyb3IsICJGYWlsZWQgdG91Y2hzY3JlZW4gZGlz Y292ZXJcbiIpOw0KPiArDQo+ICsgICAgICAgaW5wdXRfZGV2ID0gZGV2bV9pbnB1dF9hbGxvY2F0 ZV9kZXZpY2UodHMtPmRldik7DQo+ICsgICAgICAgaWYgKCFpbnB1dF9kZXYpDQo+ICsgICAgICAg ICAgICAgICByZXR1cm4gLUVOT01FTTsNCj4gKw0KPiArICAgICAgIGlucHV0X2Rldi0+bmFtZSA9 ICJUb3VjaE5ldGl4IGF4aW9tIFRvdWNoc2NyZWVuIjsNCj4gKyAgICAgICBpbnB1dF9kZXYtPnBo eXMgPSAiaW5wdXQvYXhpb21fdHMiOw0KPiArDQo+ICsgICAgICAgaW5wdXRfc2V0X2Fic19wYXJh bXMoaW5wdXRfZGV2LCBBQlNfTVRfUE9TSVRJT05fWCwgMCwgNjU1MzUsIDAsIDApOw0KPiArICAg ICAgIGlucHV0X3NldF9hYnNfcGFyYW1zKGlucHV0X2RldiwgQUJTX01UX1BPU0lUSU9OX1ksIDAs IDY1NTM1LCAwLCAwKTsNCj4gKyAgICAgICBpbnB1dF9zZXRfYWJzX3BhcmFtcyhpbnB1dF9kZXY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w0KPiArICAgICAgICAgICAgICAgaWYgKCFk ZXZpY2VfcHJvcGVydHlfcmVhZF91MzIodHMtPmRldiwgInBvbGwtaW50ZXJ2YWwiLCAmcG9sbF9p bnRlcnZhbCkpDQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGlucHV0X3NldF9wb2xsX2ludGVy dmFsKGlucHV0X2RldiwgcG9sbF9pbnRlcnZhbCk7DQo+ICsgICAgICAgICAgICAgICBlbHNlDQo+ ICsgICAgICAgICAgICAgICAgICAgICAgIGlucHV0X3NldF9wb2xsX2ludGVydmFsKGlucHV0X2Rl diwgUE9MTF9JTlRFUlZBTF9ERUZBVUxUX01TKTsNCj4gKyAgICAgICB9DQo+ICsNCj4gKyAgICAg ICBlcnJvciA9IGlucHV0X3JlZ2lzdGVyX2RldmljZShpbnB1dF9kZXYpOw0KPiArICAgICAgIGlm IChlcnJvcikNCj4gKyAgICAgICAgICAgICAgIHJldHVybiBkZXZfZXJyX3Byb2JlKHRzLT5kZXYs IGVycm9yLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkNvdWxkIG5v dCByZWdpc3RlciB3aXRoIElucHV0IFN1Yi1zeXN0ZW0uXG4iKTsNCj4gKw0KPiArICAgICAgIHJl dHVybiAwOw0KPiArfQ0KPiArDQo+ICtzdGF0aWMgY29uc3Qgc3RydWN0IGkyY19kZXZpY2VfaWQg YXhpb21faTJjX2lkX3RhYmxlW10gPSB7DQo+ICsgICAgICAgeyAiYXg1NGEiIH0sDQo+ICsgICAg ICAgeyB9LA0KPiArfTsNCj4gK01PRFVMRV9ERVZJQ0VfVEFCTEUoaTJjLCBheGlvbV9pMmNfaWRf dGFibGUpOw0KPiArDQo+ICtzdGF0aWMgY29uc3Qgc3RydWN0IG9mX2RldmljZV9pZCBheGlvbV9p MmNfb2ZfbWF0Y2hbXSA9IHsNCj4gKyAgICAgICB7IC5jb21wYXRpYmxlID0gInRvdWNobmV0aXgs YXg1NGEiLCB9LA0KPiArICAg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