Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2340014ybh; Fri, 24 Jul 2020 10:16:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWdpX6MNJMwpWzTsrn0oiLk1EZXqAEjbeVM2oFbJ0easo3tjeJ2pYeB/zQyCWsYHm8l7Ew X-Received: by 2002:aa7:c4d1:: with SMTP id p17mr9475409edr.268.1595610998512; Fri, 24 Jul 2020 10:16:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595610998; cv=pass; d=google.com; s=arc-20160816; b=jzBc6uz5syr8cCWYHiBrNyL5qf/ReCp8Nz799SPpUFafWscm7qCK3aJC4HZaLgAyBc 36yfP16k8aoH+VcWBPkDp5BllppaCc94KCyc3t7l4BuGs76egKszlKU6aj+Fn2wEOhpB tB3Xp9Y2KcrgSJdm81yVi3zL6hLE2kB1/ypf8VVnH6EKs3v1WcP5EZDwegCtNLT/PDmp hwEuyi2H7vfoMsGP8BKc0uzDOouSIp+AoYUoGJPLbfa7CgDxvYQOhJ8ftV6i2Anna58q eTrANpilO6E+Mb2hFGqL1WETM/VZ/qrlTDUFVHXYKCU8uqn3gNVgVn2uWhQiRzjQ7/Jt LoXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=PwFNXeiiVou8n68QhScO6d953opU2jKeblu4rIr/jWY=; b=Gs2DLwMBfGgMk8K13wWp1Wf2VYmZw+NE6PygfbpXmEettxArGMJ2Pv8UkoctZMJPnE bvwIbAU5OPGKtCNBCfeqXp0OiHMbGJ5AYE+2i8huFEXt9xNgQFf+SSELqK1SSaaGEAJB oTxfK9R4SBK9CEF8kcoaF6dUTkwTGAiGmebXapuK9JzO6hRzNIkhSTS41jkdEnH5jvYE J3KcGrcRPWVBOAcmSaOjLfVbKcJPtBSYgzHK7vPEY24lqPgtlwqlspnwsHifva6D2bG3 iyArdUOYRN0KuFVDfWaAyogrbMu2sU8Ha9ReY+S3gAxQBi/6MTcT4McBbpD3YNFWPLff 4PwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=OtXvZhuH; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt10si979006ejb.196.2020.07.24.10.16.15; Fri, 24 Jul 2020 10:16:38 -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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=OtXvZhuH; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726824AbgGXRPS (ORCPT + 99 others); Fri, 24 Jul 2020 13:15:18 -0400 Received: from mail-dm6nam12on2054.outbound.protection.outlook.com ([40.107.243.54]:64224 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726488AbgGXRPS (ORCPT ); Fri, 24 Jul 2020 13:15:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iVFGmRhWyh/nabkjbHDc4cL/JupoS1qh/7Go1pGQnZwbPlUrsqTw7uw2xTPR5sgEX3qCXSq7DIBfxNhR9Arath58mYJ128UJuJxihu/PCYsWaiILSeXvqeLyHUO/3CxzYMV0fhjd/qMb/07BbS6cKtiJczVCddH/7uNzDFQ/41rouZRouaMMFXjXJo9SWJunO+/LnE5NRKLteMn3x3bkfNQ2rEbtdfxjAfBQrWc6JaFn4GS3WHMP0dqMKX6Gzx3AkcnTeRWBmQypRz07cF7sg2DphyEBYMxT9KrEc7ueSRGg3DgJmtfdr7ENPUmbHS/o3ZOrxzyrFtQhduvpRvUaLA== 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-SenderADCheck; bh=PwFNXeiiVou8n68QhScO6d953opU2jKeblu4rIr/jWY=; b=Z1vr3XvGIWveRdFQkIhEM8sETLnncaKhn6yhxuXHEQLThD+LmHyJCL/XiupPOm3knk3Bog1lX1ILq8BkhpjwPr7VXWxzBsQXRYlH3gWbt/3F4ESyFQCuWQ93Jac16tG72GsrGR75504vXNK5myPZ/PG9+Bf6JEQkcXIlzsuFjRwX67rCRrnZXyTXNtIY7cVM+BnYNhJT+l/uxikGr0KyNZCvR3rqih69vJu7MXQFygBcNgwDyTShzLL7A43r5LU5yKNHskC/95zC09ldv3jw5Nx65LbvFIVZe54GcfPQjZNxkEeJ4lpkKlw79DC5Q9w4ysIsGWueAfUUM5G9Fd3vzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PwFNXeiiVou8n68QhScO6d953opU2jKeblu4rIr/jWY=; b=OtXvZhuHdSdtky5ccko38YrdukJS5G908395iEYYZcgfkoPZ3a/yOu/68TwVVWr9mp5DD3A+eYBbKoeF6aDOi/+wIbnN/uvQwjny3ADaQQiQEzUJwOnmgKsc4H+FNknbKa2V4ChlGGEr8iSMg0cwnGAQx152ZPt8IQsDgwG2bqg= Received: from DM6PR02MB5386.namprd02.prod.outlook.com (2603:10b6:5:75::25) by DM5PR02MB3845.namprd02.prod.outlook.com (2603:10b6:4:b9::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.20; Fri, 24 Jul 2020 17:15:13 +0000 Received: from DM6PR02MB5386.namprd02.prod.outlook.com ([fe80::88fe:438e:4d0d:a77e]) by DM6PR02MB5386.namprd02.prod.outlook.com ([fe80::88fe:438e:4d0d:a77e%7]) with mapi id 15.20.3216.026; Fri, 24 Jul 2020 17:15:13 +0000 From: Srinivas Neeli To: Andy Shevchenko CC: Linus Walleij , Bartosz Golaszewski , Michal Simek , Shubhrajyoti Datta , Srinivas Goud , "open list:GPIO SUBSYSTEM" , linux-arm Mailing List , Linux Kernel Mailing List , git , Robert Hancock Subject: RE: [PATCH V2 2/3] gpio: xilinx: Add interrupt support Thread-Topic: [PATCH V2 2/3] gpio: xilinx: Add interrupt support Thread-Index: AQHWYPp4ZP8ASW+qekKZVgUqxpAE06kVdRwAgAF102A= Date: Fri, 24 Jul 2020 17:15:13 +0000 Message-ID: References: <1595513168-11965-1-git-send-email-srinivas.neeli@xilinx.com> <1595513168-11965-3-git-send-email-srinivas.neeli@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=xilinx.com; x-originating-ip: [106.217.149.82] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 22bbe5fe-1364-4c0b-b526-08d82ff52095 x-ms-traffictypediagnostic: DM5PR02MB3845: x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NT4M5ZA6zxhPtQ4yDwDRr7PkDHlL88cJaXMRhC4xtxQJeMopt9rIclSqgS0MV3mvHqO1Im5HPk9++A4dbiB+7/whoIhIFN3lTq95tQ58/TYFwonClHpXFO/HRSXumuSMF+6dScVbF545EvjcTgJGzhC+HNkGgc5JjGgZIf18wDIT9tbBeAhXNELw10zyfmj24kGVNFWDpIozukpdA37nIZLh/PJBM4qyOBUqb+tBakBPNXlCTcj6pNZedZDO/5kIukN2AE/7hXnO95Pj2XIpPMN9U1esGbNRD3BhgbFozL0WRAwTYlZdW8gRXqavlFIlQQ8jm/N5WH/O9f0GCGXk+g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR02MB5386.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(346002)(366004)(136003)(39860400002)(376002)(396003)(55016002)(54906003)(83380400001)(8936002)(76116006)(9686003)(66556008)(86362001)(2906002)(64756008)(66476007)(66946007)(478600001)(66446008)(71200400001)(26005)(316002)(52536014)(5660300002)(6916009)(33656002)(186003)(7696005)(8676002)(53546011)(4326008)(6506007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: dz2MPAiPuE4BMYnLnMXIy8IxmakuCMWYV3chh8hCwUgLGdgX94xTWik/76qq2cyiqnsyj8COmdOp/Tb7jBTdCCiNWn56U3HqmkoL4TGsUBVdfwktk9fHmh2wza0ofb5E0PZBe36NuCP2C00SA99k2YdHk53mJJUT3o0lL7PP9eZMMSlMmwr75j4rOryH9lRiYAqy0yqD+4yiQ0ZGBTVdj37BB6QCKYDiHhnBzGjcDFtTNdPNNXrBPDC9bfj7y1dKMdnYnRNmfbuN/4qoiOjt9VLXLLMu1qYG4BithTW2P1F6UWvXt3svVAowKi5C/NMPDsuYVwgEYqvPr31BwREtoVvyWhT/XboSAKqamX7ASa7TbTEsXnG2AoZAIDi9WNomBW1Kis+blTY9F59kmoLleoTz2O4CCAnO2tnzKNco2JgLG+MkuDQfTgIYMtlTM0hz5wab/llUe2ikUzFv8BlepBMIM2OpTxkGQHhmnM8YaXRa8eCkqSkLFjr6kgcP70tO Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR02MB5386.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22bbe5fe-1364-4c0b-b526-08d82ff52095 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2020 17:15:13.2140 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qlCV70JdExHHvG1ZUdgzQJWWUTr/AFnZUN60FdErAer0i18l9a11ZdCrP13twb2/fs3b95uZkcXNWdqa60s+Mw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB3845 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5keSBTaGV2Y2hlbmtvLA0KDQpUaGFua3MgZm9yIHRoZSByZXZpZXcuDQoNCkFjY2VwdGVk IGNvbW1lbnRzIHdpbGwgYWRkcmVzcyBpbiBWMyBhbmQgQWRkZWQgZmV3IGNvbW1lbnRzIGluIGlu bGluZS4NCg0KPiAtLS0tLU9yaWdpbmFsIE1l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