Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2648227ybf; Mon, 2 Mar 2020 12:56:56 -0800 (PST) X-Google-Smtp-Source: ADFU+vtfWSj6yZnSJJ+PEn9Hjlye2LMBWlD+QHdCaMZqzRYeaZf/haw3kb0KHavGWBy9x01EIjSC X-Received: by 2002:aca:4e14:: with SMTP id c20mr236156oib.96.1583182616061; Mon, 02 Mar 2020 12:56:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583182616; cv=pass; d=google.com; s=arc-20160816; b=0Fw6ci7zLP9gyT2BX4Ohhgq5LrP0/wgaTVsvXsz9ZX2wLuW2qRIGsKO0PukBX3MTex UfPv2+7ohRweVqdGBadlkagVyP1k47nbXth2Cf+kaeWG0JiacVKCUe6ptl8VZrzAde4t bZ0iMeSuOdU/j5Ah026UyfOUYhVTPFknNPW+K43sQEpMkEPa+i2ZTzmpHvxh5HD6dA7s b6tR722nMWuBN5T2rOaPbjokkrsJLfUkidrNL1sWyx+MgCTvVR2Y4WlRWKPWSExHLYPU x1x5SMqj/xN3nA/QytZi2LPYYdK2dfLMCbb+ZGhLE5XYVeS2DKnvMzxb6MPicP4rAv/0 q2Ag== 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=P5oSJ1jrKTvsz4piFlWv9vPV7KOxM7o+NPgd6Gf+tnw=; b=D/wbvI4fhRmWjJrFwy/YXa+u/x87dZpbmT888iwbyE9KjSnt8ReiedDGFJbOQK2jca POeUDIMB5717UxNGogZjD5niNzOGGi3gPrQPadp7NqYEBODkvyZ0gspokOLISi2hmrVq 0ADH/IxbuYePW92p7p/O8Gf3ZdRe5ArfmT7/M4WLVm3z8augpwk01nb9sGjZkzn9l5X5 +cgxdJi4NObIHUXvTlQZ6s0mN/yt/T3OxFl/uy9MFtLqdIwWO0CD+ySw/NjN+MvkhAH4 UVzr3B+XZCONpnt1uI2uvFFhe2bx5cxB5AbWozSjpCtayBY3T8wapIDpT5xFPEQW9Po4 rH7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b="ZeNvz/DE"; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si6902552oti.249.2020.03.02.12.56.43; Mon, 02 Mar 2020 12:56:56 -0800 (PST) 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=@Mellanox.com header.s=selector1 header.b="ZeNvz/DE"; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726764AbgCBU4O (ORCPT + 99 others); Mon, 2 Mar 2020 15:56:14 -0500 Received: from mail-eopbgr60055.outbound.protection.outlook.com ([40.107.6.55]:58342 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725781AbgCBU4O (ORCPT ); Mon, 2 Mar 2020 15:56:14 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TT/PajB7mCxmMHWPSitGqdF794yFuQfHJ0thAabRF3ZeZFE3wr4rHA/JE3vLFlFgFkMspVQ6y44OCw8OPGcvm9ASCYciK6tzaCBAi5GvsiqaTBRynmSXpRVKfpDz196QZx9Fl44WQUyYLRxqs5WtA3R82y7/kU3Xp2om7FL+kUJuzzqbQ8i6oehw17q4IM2RSB8YI2dNY3IeT6N00uKGSUwN7+YBRTXdTnJq97lSjHMk6zra+t+MBRQN3U7RRzjQA3qfIoA8jSIqh2USo7Tlh6hhTpFTpz3lx3T/kwHg6SRwPbr8qQTBODxobpkFVokkd+xyGLck/plS50qr97nCYQ== 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=P5oSJ1jrKTvsz4piFlWv9vPV7KOxM7o+NPgd6Gf+tnw=; b=C7dMcDqfrUQjuLWDN+e24kealrBhVQIzIYMdAML9yfWCk1MxRbGVyBkL414tRSbxky2RwdW6wx0NxN4f5QXrUj8n7dIuC5hHYLU14ihjJ9kTBeJ4l8dLUGArbSFXiQxUPoJDGHeWRS1Ux6DP3Ayn7T7mfds0jPprWOMIAW/7/Bg30rmI+Q8+YfaJmFzX9XGnJSkJUwyyLX8SnH5NyWuq4vDZ3kZo03n53Jcfev6aQDAJzNX4fzVj63N5CBYuBvkTkTguAfV4bmY6K59qWSNEJcjLMhgEafeehpU2vceQJTpXcAMHM/Re5f+XGMr3IQaemY8i4vcq5MleGLv1Ut9lFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P5oSJ1jrKTvsz4piFlWv9vPV7KOxM7o+NPgd6Gf+tnw=; b=ZeNvz/DEwv2TVBl00VCoWcHdc1r5NIf8QpVyMlbG8eQoHzhCM3B6dne5NOPZaiXqqiDJdSm6kDYH4bOlNGTBWemLrZf1pAz8UkgXmB2sN7gh4l7qISaRBClFdXd7+CzpWTLDGm7ByxwCg6EAvk2QIptDVUTkioYbbdvougoyqFA= Received: from DB6PR0501MB2712.eurprd05.prod.outlook.com (10.172.225.17) by DB6PR0501MB2472.eurprd05.prod.outlook.com (10.168.77.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15; Mon, 2 Mar 2020 20:56:09 +0000 Received: from DB6PR0501MB2712.eurprd05.prod.outlook.com ([fe80::58ec:69b7:ac09:8614]) by DB6PR0501MB2712.eurprd05.prod.outlook.com ([fe80::58ec:69b7:ac09:8614%11]) with mapi id 15.20.2772.019; Mon, 2 Mar 2020 20:56:09 +0000 From: Asmaa Mnebhi To: Bartosz Golaszewski CC: Linus Walleij , LKML Subject: RE: [PATCH v3 1/1] gpio: add driver for Mellanox BlueField 2 GPIO controller Thread-Topic: [PATCH v3 1/1] gpio: add driver for Mellanox BlueField 2 GPIO controller Thread-Index: AQHV8LNoXwcZKGJM4UqgXPph1OJA7qg1lCeAgAAa+7A= Date: Mon, 2 Mar 2020 20:56:09 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Asmaa@mellanox.com; x-originating-ip: [216.156.69.42] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 39aa7470-171a-4ab0-1a0c-08d7beec2235 x-ms-traffictypediagnostic: DB6PR0501MB2472: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 033054F29A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(39860400002)(346002)(376002)(136003)(366004)(189003)(199004)(5660300002)(64756008)(186003)(53546011)(71200400001)(86362001)(55016002)(7696005)(30864003)(9686003)(6506007)(2906002)(81156014)(81166006)(66946007)(478600001)(76116006)(8936002)(4326008)(66476007)(66556008)(66446008)(33656002)(6916009)(26005)(54906003)(8676002)(316002)(52536014);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2472;H:DB6PR0501MB2712.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ES/EmqBTZkjE5lyYMFMVjMZg94pvfB4l1BNqLvHOOSqQgPzm9I15x02XN1w8Fe42BEp3EI6xp6t7xSnqtl+s8TUnQ0mPN5fbVG6ZpsjXW2sDUEKn5DiAeFmj3KFgb8ENj1AOFKAyBBK1PU6UbWPQM3zpBMkIsZr629PpGcSsE8dUoW+1QupCa1WD9GE1PneyKu25LLx8rU3qCT5R35fMRWfHF0+5/kdHt7l6mD6Zj/WHCHQtS0VWeAooeR6JV6f9KmLSGVOz4nGn3rmG5gRAu+UA/GNq2KcNuLf20j+J2ortj+dY3Q/QrIYWkKRxluVOu5T0KUTapPPg7Q7IrmezZAn1u0dpIhsSzMoIcwqhCuC+nvhEF1ZuHJV7J+gU2693ZNo2OjuyvOTsl4HpmjkyDStTXTrj5Lav13ssA+tcDBN1bVw/IpslzJAGMuYAX75Q x-ms-exchange-antispam-messagedata: AYWMH9DGqm8MSlhuQZmD9ZUdGDSuC4/GxWBDP1PMUwFNPsg4J87jIIgYYQvq0os+IXANwh0TuIALt5EjdF1w36pQDqj24Hxg7Vuf20l4equwNM5P375lqlvvRPKqaEPXmVT8H6BUYT8scMW9KVQWQg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39aa7470-171a-4ab0-1a0c-08d7beec2235 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2020 20:56:09.0519 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xu6I15kPLagYXrMN+UY5vpzidfKdW8rV27thea3kyVqHMEw9Gxeh4thmp7iSqJPmUgczpmdnCST5ERRFhz8KDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2472 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQmFydG9zeiwNCg0KVGhhbmtzIGZvciB5b3VyIHJldmlldyEgUGxlYXNlIHNlZSBteSBpbmxp bmUgcmVzcG9uc2U6DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBCYXJ0b3N6 IEdvbGFzemV3c2tpIDxiZ29sYXN6ZXdza2lAYmF5bGlicmUuY29tPiANClNlbnQ6IE1vbmRheSwg TWFyY2ggMiwgMjAyMCAxMjo0OCBQTQ0KVG86IEFzbWFhIE1uZWJoaSA8QXNtYWFAbWVsbGFub3gu Y29tPg0KQ2M6IExpbnVzIFdhbGxlaWogPGxpbnVzLndhbGxlaWpAbGluYXJvLm9yZz47IExLTUwg PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+DQpTdWJqZWN0OiBSZTogW1BBVENIIHYzIDEv MV0gZ3BpbzogYWRkIGRyaXZlciBmb3IgTWVsbGFub3ggQmx1ZUZpZWxkIDIgR1BJTyBjb250cm9s bGVyDQoNCnBvbi4sIDIgbWFyIDIwMjAgbyAxNzo1NSBBc21hYSBNbmViaGkgPEFzb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8iDQo+ICsgICAgICAgZGVwZW5kcyBvbiAoTUVMTEFOT1hfUExBVEZPUk0gJiYgQVJNNjQgJiYg QUNQSSkgfHwgKDY0QklUICYmIENPTVBJTEVfVEVTVCkNCj4gKyAgICAgICBzZWxlY3QgR1BJT19H RU5FUklDDQo+ICsgICAgICAgaGVscA0KPiArICAgICAgICAgU2F5IFkgaGVyZSBpZiB5b3Ugd2Fu dCBHUElPIHN1cHBvcnQgb24gTWVsbGFub3ggQmx1ZUZpZWxkIDIgU29DLg0KPiArDQo+ICBjb25m aWcgR1BJT19NTF9JT0gNCj4gICAgICAgICB0cmlzdGF0ZSAiT0tJIFNFTUlDT05EVUNUT1IgTUw3 MjEzIElPSCBHUElPIHN1cHBvcnQiDQo+ICAgICAgICAgZGVwZW5kcyBvbiBYODYgfHwgQ09NUElM RV9URVNUIGRpZmYgLS1naXQgDQo+IGEvZHJpdmVycy9ncGlvL01ha2VmaWxlIGIvZHJpdmVycy9n cGlvL01ha2VmaWxlIGluZGV4IDBiNTcxMjYuLmIyY2ZjMjEgDQo+IDEwMDY0NA0KPiAtLS0gYS9k cml2ZXJzL2dwaW8vTWFrZWZpbGUNCj4gKysrIGIvZHJpdmVycy9ncGlvL01ha2VmaWxlDQo+IEBA IC05Myw2ICs5Myw3IEBAIG9iai0kKENPTkZJR19HUElPX01FTloxMjcpICAgICAgICAgICAgKz0g Z3Bpby1tZW56MTI3Lm8NCj4gIG9iai0kKENPTkZJR19HUElPX01FUlJJRklFTEQpICAgICAgICAg ICs9IGdwaW8tbWVycmlmaWVsZC5vDQo+ICBvYmotJChDT05GSUdfR1BJT19NTF9JT0gpICAgICAg ICAgICAgICArPSBncGlvLW1sLWlvaC5vDQo+ICBvYmotJChDT05GSUdfR1BJT19NTFhCRikgICAg ICAgICAgICAgICArPSBncGlvLW1seGJmLm8NCj4gK29iai0kKENPTkZJR19HUElPX01MWEJGMikg ICAgICAgICAgICAgICs9IGdwaW8tbWx4YmYyLm8NCj4gIG9iai0kKEN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Pmdj Ow0KPiArDQo+ICsgICAgICAgcmV0ID0gYmdwaW9faW5pdChnYywgZGV2LCA0LA0KPiArICAgICAg ICAgICAgICAgICAgICAgICBncy0+Z3Bpb19pbyArIFlVX0dQSU9fREFUQUlOLA0KPiArICAgICAg ICAgICAgICAgICAgICAgICBncy0+Z3Bpb19pbyArIFlVX0dQSU9fREFUQVNFVCwNCj4gKyAgICAg ICAgICAgICAgICAgICAgICAgZ3MtPmdwaW9faW8gKyBZVV9HUElPX0RBVEFDTEVBUiwNCj4gKyAg ICAgICAgICAgICAgICAgICAgICAgTlVMTCwNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgTlVM TCwNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgMCk7DQo+ICsNCj4gKyAgICAgICBnYy0+ZGly ZWN0aW9uX2lucHV0ID0gbWx4YmYyX2dwaW9fZGlyZWN0aW9uX2lucHV0Ow0KPiArICAgICAgIGdj LT5kaXJlY3Rpb25fb3V0cHV0ID0gbWx4YmYyX2dwaW9fZGlyZWN0aW9uX291dHB1dDsNCj4gKyAg ICAgICBnYy0+bmdwaW8gPSBucGluczsNCj4gKyAgICAgICBnYy0+b3duZXIgPSBUSElTX01PRFVM RTsNCj4gKw0KPiArICAgICAgIHBsYXRmb3JtX3NldF9kcnZkYXRhKHBkZXYsIGdzKTsNCj4gKw0K PiArICAgICAgIHJldCA9IGRldm1fZ3Bpb2NoaXBfYWRkX2RhdGEoZGV2LCAmZ3MtPmdjLCBncyk7 DQo+ICsgICAgICAgaWYgKHJldCkgew0KPiArICAgICAgICAgICAgICAgZGV2X2VycihkZXYsICJG YWlsZWQgYWRkaW5nIG1lbW9yeSBtYXBwZWQgZ3Bpb2NoaXBcbiIpOw0KPiArICAgICAgICAgICAg ICAgcmV0dXJuIHJldDsNCj4gKyAgICAgICB9DQo+ICsNCj4gKyAgICAgICBkZXZfaW5mbyhkZXYs ICJSZWdpc3RlcmVkIE1lbGxhbm94IEJsdWVGaWVsZC0yIEdQSU8i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