Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2981582ybn; Thu, 26 Sep 2019 22:16:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM1kZebpywFT5X5H3cOpWOlEPYxMo2EzR0oLgQzoanNyeMCt5IKoriicHFolc93BrpZ10d X-Received: by 2002:a50:fd10:: with SMTP id i16mr2533841eds.239.1569561381602; Thu, 26 Sep 2019 22:16:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569561381; cv=pass; d=google.com; s=arc-20160816; b=uWHOGbRmH+gGFRQy5/ey3PxS0k1Sym6uxRlo2croksYkTkK5qDrQKrafxjn9kY52KM ep4EndOgy1YV1hKR9q8rH/ip0iKzLaZhiDTUs6KrCFnt5a/2aBR27LpdSuuTr6iymom4 e8KokkMUjOuBHbVi4ff+9rL740F1siF3tm7geJtufhpVu4ahMDD4k4L8gsVEu2ZtJjYw NAoKJDYGuKMGFTRjNsMDfZsldes5WWUbmvWBrC0WuLzDOzPHE+/kStk+mn/Nr+KW6Auv JUNnbJqJu2mfNXT1eyfvqfuxiXN3+AxD1exrhkXcpnbjSJvrKi1QJrn0CWN1CUADB/eI KCeg== 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=BIUiyUHSSafp+WHVvlewYZM4ZbvSp4KAn27Hv2fFWTI=; b=fu33SC+ha+HZAP8XWDjKBMRnandQeX/XHGHvG1oK6tsoMLSHir/fMk1GrEbS/rgi9q XaOu7OBj3a9hsz8HT6LwtL6xLRZoRIdRKZlaDm36KzQ3eHGM1jgXoBZ8iP7/JWl3IpXH FFY5orvR7/T0ouGq7m3EnHZ83qlStF/UaLg3bd4ZRBcRzLXaCTfsA8J6/LVEA/gT2A8K Ekpuyv8QKL54PV8gCqZukuytEVbfSAHv/8wTmGJ+5dRRiepTbPhnVYcAAFonkusk5Nwu HMUFkOhscn2GlESUo+ZfUQEoOoB+bKrgODWWzQJbryEfh0M+Iz5rBZpR1cqZExHYZAa3 j8fQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=S3NyJP8y; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dv21si2106061ejb.241.2019.09.26.22.15.56; Thu, 26 Sep 2019 22:16:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=S3NyJP8y; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728965AbfI0FNe (ORCPT + 99 others); Fri, 27 Sep 2019 01:13:34 -0400 Received: from mail-eopbgr750045.outbound.protection.outlook.com ([40.107.75.45]:40633 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725268AbfI0FNd (ORCPT ); Fri, 27 Sep 2019 01:13:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J6GBofToTWCEpG/PAgvTsnQVlw17jvYpOzFCFSGbpECyPMnp8eue3kPtzRAmcqza9cosQGkx7w2WXc5EiCxRR4LiqmCY+1pkM7yZHgzpWwXqBlxh6un9aIwJ7BVSEIq8z6DGPRNCtjaIHW0Vb6dQtvv3zDN+EQdzDou/XxosUIrf9otoeMznyfuPtkgA5ntd5zB0N6cBo8gWQIfCX53oeFqkP+lYwr8w9bSwL4QgXWy7nAcr5INVM6ezB5v5sApSeKoQp0HEj+MFuq8IH7j/3gwkW1kI8oDyf5SVP9pAyEa92Gdl6Wnid6Tp1U/CtwrkhBi70sMN2QMUZ2ap7dDYnQ== 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=BIUiyUHSSafp+WHVvlewYZM4ZbvSp4KAn27Hv2fFWTI=; b=GQ98/20XBE8zKkjfkJtvLHRZJkJhNuxKZ3MA1GDVVT6ZeMNyKNsDBRnSWbX9wELtVKCKW7K35AKSqs0XQls8zXnR1PYpS2YFuaw42nl6LalBMQ7rwjpUrPZ/OScT/04tsfUQS8/SmqVowI/TAIUKbKctuYiI5HAmPaUoJANqGVNRr8zKBqlPXIbukIBnoC2ivJcqzfDtOHFew+p59dSC8i74wIIGlEdIUjz3xAhu90hTmgrHZfPwA0ibFU+A+JsaCY1zHSmWU/I2bgN0TLPVSfyVJ2hGwV27e3NfiG0wULhp1KFk+ogb5Lr5pDThO0M1paysXhGU6qadZ3ITFE5WMg== 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=BIUiyUHSSafp+WHVvlewYZM4ZbvSp4KAn27Hv2fFWTI=; b=S3NyJP8y+zR9Ux0/pEM56xqqZhACLFAe8AhZbv1M8DlL2+K5OdKgCfQJlCUBW0nnxflQtR3k3HUHyoT/+vkvb8L/fRRA79OUXwc6dATLckWictTnzHkX0cZyRNncnDc4fd3aF4gOsOqqGv9Et4Kxz6kbAbY8ta7zB11eNghneXE= Received: from MN2PR02MB6400.namprd02.prod.outlook.com (52.132.175.209) by MN2PR02MB6927.namprd02.prod.outlook.com (20.180.24.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.16; Fri, 27 Sep 2019 05:13:28 +0000 Received: from MN2PR02MB6400.namprd02.prod.outlook.com ([fe80::5c31:a5be:6d2e:b00e]) by MN2PR02MB6400.namprd02.prod.outlook.com ([fe80::5c31:a5be:6d2e:b00e%6]) with mapi id 15.20.2284.023; Fri, 27 Sep 2019 05:13:28 +0000 From: Appana Durga Kedareswara Rao To: Moritz Fischer , Alan Tull , Moritz Fischer CC: Michal Simek , "kedare06@gmail.com" , "linux-fpga@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , Nava kishore Manne , Siva Durga Prasad Paladugu Subject: RE: [PATCH v4 1/2] fpga: fpga-mgr: Add readback support Thread-Topic: [PATCH v4 1/2] fpga: fpga-mgr: Add readback support Thread-Index: AQHUJXI7dDFbK5711Eu097iFJz0BGqSpdEwAgpgj+bA= Date: Fri, 27 Sep 2019 05:13:28 +0000 Message-ID: References: <1532672551-22146-1-git-send-email-appana.durga.rao@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-Mentions: mdf@kernel.org X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=appanad@xilinx.com; x-originating-ip: [149.199.50.133] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 684a9eca-b552-4ac0-08c1-08d743096e9e x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: MN2PR02MB6927:|MN2PR02MB6927: x-ms-exchange-purlcount: 2 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:1148; x-forefront-prvs: 0173C6D4D5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(366004)(39860400002)(346002)(376002)(396003)(189003)(199004)(8676002)(52536014)(5660300002)(99286004)(26005)(186003)(6306002)(9686003)(76176011)(66946007)(6506007)(55016002)(86362001)(7696005)(102836004)(4326008)(53546011)(76116006)(446003)(66476007)(476003)(66446008)(66556008)(64756008)(486006)(6436002)(11346002)(6246003)(107886003)(14444005)(256004)(71190400001)(71200400001)(33656002)(6116002)(966005)(54906003)(25786009)(110136005)(316002)(2906002)(478600001)(14454004)(3846002)(305945005)(229853002)(8936002)(74316002)(66066001)(81166006)(7736002)(81156014)(422495003);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR02MB6927;H:MN2PR02MB6400.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kiuGyxaF14pAY7wwH1ADuRbE8tj6foIxYS3SJ2EyTyDG6lLLsDklzvygXJI/fEnQBKS2frjUzo1H8CpyGj8y8AmUjAydDHaWANnCm25R667p4uyO7Kgwi9W3OFfh+4OnbEnhLlmskvZTkEVxnmRzLy3d1C04JcaBEBHFegm1crXb9Dq6VOTXDPNrWJ/SCykY2kWRTl2lvZyf0cdH08adYklSlvY2OKnJcbs3vL2CoHeDAC07T4uxsMBLF+b0X/fRdTQvtUkRgpS2rbNi2MhfQdpClLj0ecSQnaP5fbeY1ZxnCEdM5ApW2PtjZrdH6jxkidxgly1t4gWDDN65HaPCe5ckiBLsnJnUqS/GlPo48VUpf+KGmwgwcY81hVs4sRuakyZtT+nlaC53nxadE/irazYVcPxlrDrL7vQQkXXM2TbEFOwwTCC65hC1QE+rj1XfFp9hpwtbYY1/O5xMyAStYA== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 684a9eca-b552-4ac0-08c1-08d743096e9e X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2019 05:13:28.4102 (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: O2geV3pvh6HD6sYAMpDgnjisAvLzAO1THEZm2UValkFaSxYQu71nwgCHDDKEKTsus+F6elPFT0BDI3ShMEEPLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB6927 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQWxhbiwNCg0KRGlkIHlvdSBnZXQgYSBjaGFuY2UgdG8gc2VuZCB5b3VyIGZyYW1ld29yayBj aGFuZ2VzIHRvIHVwc3RyZWFtPw0KQE1vcml0eiBGaXNjaGVyOiBJZiBBbGFuIGNvdWxkbid0IHNl bmQgaGlzIHBhdGNoIHNlcmllcywgQ2FuIHdlIHRha2UgdGhpcyBwYXRjaCBzZXJpZXM/Pw0KUGxl YXNlIGxldCBtZSBrbm93IHlvdXIgdGhvdWdodHMgb24gdGhpcy4gDQoNClJlZ2FyZHMsDQpLZWRh ci4NCj4gT24gRnJpLCBKdWwgMjcsIDIwMTggYXQgMToyMiBBTSwgQXBwYW5hIER1cmdhIEtlZGFy ZXN3YXJhIHJhbw0KPiA8YXBwYW5hLm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