Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp221060ybl; Wed, 4 Dec 2019 01:25:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyjXS9hNVM/jDcYiW8nvJV/xCaEAW0S4qdnP5y7WLMcKscw6MoaHeJsyddqJeab2aThl9mG X-Received: by 2002:a9d:1425:: with SMTP id h34mr1741798oth.166.1575451522676; Wed, 04 Dec 2019 01:25:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575451522; cv=pass; d=google.com; s=arc-20160816; b=LHIDBzntqCSyCILHaN5ZWiLOR2Wk2bPCJc3eg+iiOCTIpcVQA9SpKhm1DfaVLPMcqs 5oS07ZhZstyFIArA6KnqhbysZFRxKT4+Oy0rgEkriCg5oixejs6fH9WvWxQg2dTY7g9L cbJuoNtCbOZ78KOE+1eUaRiPSaZ6Yf5fEwMIuhEx881OuPU/2G+IQogVjge4gDJiVfWl Mtu3DJhvbw/U0Ejx6G38+GbdfDY+WT5okUO8b78ejIVkeKjN31yLNhDwhNcrJAgCIcsK j3d+mKhNKyvk1KUJqolKDA0BL3BDvUpgWgmu/bLRN+cG0FhTA8UaQLi1CJR3/SxPdLvt fiFQ== 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-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=NWtC2nXLlM3gbHrtMYMIsU0P90rPCLA9RvOC271f0R4=; b=fEaCSiEh76B/Yk7Em0V9SRdwWR+2w5LyUUZZjlegeqzvijLF6mVwpg3Pel4sGikRU1 AZmOyi1lC1FVlM1pCntBZypO+LNyHF+dFT65jBscEQUTc7IHV5xKrMcEDJPEsuiZePXe EJgUr6tStVElCfs00DdZoDQVdswESGeAn0xrweq4EdKr9k3se9BYWBBseqJxgm1heA+V DL2jjuRMyU3+EMcXClLnCOWF164PzPbWX6zzhzYElDxHisC+9hNHb62NoawpGxEb8sxe W6Svp+X1UFht2c31+dQqcDssiFXf4S0GenCEKSO/6yQYkCddv5XD1VtWabMtVpCQv87F RSuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GNIoMjSs; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si2231920otk.79.2019.12.04.01.25.08; Wed, 04 Dec 2019 01:25:22 -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=@nxp.com header.s=selector2 header.b=GNIoMjSs; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727273AbfLDJYj (ORCPT + 99 others); Wed, 4 Dec 2019 04:24:39 -0500 Received: from mail-eopbgr50074.outbound.protection.outlook.com ([40.107.5.74]:2354 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725922AbfLDJYj (ORCPT ); Wed, 4 Dec 2019 04:24:39 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eLCkORnw3wfAY39IIFl5K92sOxN0OthgFb8fMPH3tFnevY9URfP0gjEWxCZ+QUpVjTiuMDInHeL/oH0XYWPxjEk+4fGW5PaQTLrCmrwCRDXu4QkLqekKUj7Kt2x5PFV7FiNAJCD4F1GGvFFRWHadWVnZA+MA1F8wq4LfJBF3WRlTj64Df27bQRnatsgoIzJcVbtB5ejJrxzimq2nkrMJmumbuQQM13tSKMbeCLv1FvsiiWoVN0qa+QTwi4vPCDRjKY6upMXvAQVmeALfpDWLJTM0FFAQnVPmlVKhdLttDVwgucRh2+IM7WtuX0N4fWy1+eCzh0QTTZ34/rMy+fgV0Q== 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=NWtC2nXLlM3gbHrtMYMIsU0P90rPCLA9RvOC271f0R4=; b=FBbD9zVRe5nxfxtKzvESrxaIpNUItVhnzpLyQ2uDvNBDk33xxmQroMVQfN7gY0SqWzunIM2n5g2zkcjisEaIVq/qKirbngEBgzHtWzLD717eADDpDYZr3qkwVt4QZpdIsfBshBwfoIPd7w0RpdoBaNcWevLM4YjgbTWU1b49oZh0s8fuCYmDvsKbZCrKrqxI542sbCXtbDFxf/5tzOjme2P5edfg5QOjfoU53ZSkh8wgbjBgmgyWHpHQyVTa4fOa/XFIOmnUKnxr4GvJtTwS7vYFk/hOMzYoKmraV37MP4Ql8Xrbv5TGuQUavga1woIx/HjPKRcJmHsLLvklEWxKkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NWtC2nXLlM3gbHrtMYMIsU0P90rPCLA9RvOC271f0R4=; b=GNIoMjSsOqz754A2LYyZHL5nD8+QhZ+gjQYBio0kqeKg4sV6iRuKup2R+tZIQ34ylIx1Q2BAwNMIomlW65Qj1/CtKFU71RVoMcwupMJSn8WoegmRADLo2ubiWXphIT9lw0z0BR9Nev86LRRv1fcPIyvkUBe/DvGVH3/uJDBJ2pk= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5812.eurprd04.prod.outlook.com (20.178.119.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.21; Wed, 4 Dec 2019 09:24:35 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::f16d:a26a:840:f97c]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::f16d:a26a:840:f97c%4]) with mapi id 15.20.2495.014; Wed, 4 Dec 2019 09:24:35 +0000 From: Peng Fan To: "rjui@broadcom.com" , "linus.walleij@linaro.org" , "bgolaszewski@baylibre.com" , "f.fainelli@gmail.com" , "sbranden@broadcom.com" , "thierry.reding@gmail.com" , "robh@kernel.org" CC: "bcm-kernel-feedback-list@broadcom.com" , "u.kleine-koenig@pengutronix.de" , dl-linux-imx , "linux-gpio@vger.kernel.org" , "linux-pwm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Peng Fan Subject: [PATCH v3 1/2] gpio: mvebu: use platform_irq_count Thread-Topic: [PATCH v3 1/2] gpio: mvebu: use platform_irq_count Thread-Index: AQHVqoSkBJcTHD8ix06RBDAwXsOZyQ== Date: Wed, 4 Dec 2019 09:24:35 +0000 Message-ID: <1575451330-11112-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR03CA0060.apcprd03.prod.outlook.com (2603:1096:202:17::30) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: aa00214c-eacd-4496-5cc9-08d7789bc6f8 x-ms-traffictypediagnostic: AM0PR04MB5812:|AM0PR04MB5812: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:132; x-forefront-prvs: 0241D5F98C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(136003)(366004)(376002)(396003)(346002)(189003)(199004)(110136005)(14444005)(316002)(2501003)(305945005)(7736002)(50226002)(8676002)(81156014)(81166006)(8936002)(86362001)(2906002)(3846002)(7416002)(6116002)(54906003)(4326008)(6512007)(2201001)(25786009)(52116002)(478600001)(6486002)(5660300002)(6436002)(44832011)(2616005)(102836004)(26005)(6506007)(386003)(186003)(66574012)(71200400001)(66446008)(66476007)(66556008)(64756008)(66946007)(99286004)(71190400001)(36756003)(256004)(14454004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5812;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y8nsuZdeStsFsUSYn0+DJYRrZGszenMKK/4YqkG4741KetRx6nYJqL8+4VvAoG8VTCfJP/txt2iUgQRzl03d6X5olfMCJMQiqAzoUL6PKOvk7a+4wxVmYJ/DA+fIkLwYXafxIguZurBZLmgwqlKuwJCPVGI+9EHkkPQPm2lC3ehAbg1321MDqpc+RB2fCQmzoAJoUdIJI3UGJbTrW7gFlSSTcPmzAxxlCdsRsERZk18yMcefMVISUfrBis+3oO5NEBkn+0zYFpAaNBVbN+aofA6Sd4krEqCx6WZ7buyyHfP0VgzoYO4tLNcD8h80HzbQ6Lys/xYafcJ8s+Bmat6HWEsLdVvtFRCbpKJhvH5CdR6bZcDQ8wjZYiDvXtmtkJXk0lZIBia3O0QToZ2Lboy023f6TaWVeMEmlp9KBf9/X0gRWK9UWBwpoM0FJ76eT57M Content-Type: text/plain; charset="utf-8" Content-ID: <225D19D2BDA71E469714620A2E966AED@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa00214c-eacd-4496-5cc9-08d7789bc6f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2019 09:24:35.1782 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /8bsLxnmeQp6hpfVu1keAo0FvpVB1lUqFtDhxs6JYXMRE33XJ/44vcG3NQsU6BEvgxvLng2EQSLJyeznZdLLTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5812 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUGVuZyBGYW4gPHBlbmcuZmFuQG54cC5jb20+DQoNCnBsYXRmb3JtX2lycV9jb3VudCgp IGlzIHRoZSBtb3JlIGdlbmVyaWMgd2F5IChpbmRlcGVuZGVudCBvZg0KZGV2aWNlIHRyZWVzKSB0 byBkZXRlcm1pbmUgdGhlIGNvdW50IG9mIGF2YWlsYWJsZSBpbnRlcnJ1cHRzLiBTbw0KdXNlIHRo aXMgaW5zdGVhZC4NCg0KQXMgcGxhdGZvcm1faXJxX2NvdW50KCkgbWlnaHQgcmV0dXJuIGFuIGVy cm9yIGNvZGUgKHdoaWNoDQpvZl9pcnFfY291bnQgZG9lc24ndCkgc29tZSBhZGRpdGlvbmFsIGhh bmRsaW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