Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp302335imm; Wed, 11 Jul 2018 02:44:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpedWLDvMRrg4bSDGRLpBb/H447x2RaeDhB49WxOC7AXNxiFeUQsrtXG9kNw4atOYPs7Jqi/ X-Received: by 2002:a62:9042:: with SMTP id a63-v6mr29455455pfe.52.1531302251254; Wed, 11 Jul 2018 02:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531302251; cv=none; d=google.com; s=arc-20160816; b=Z5beOk6K+3oVHBMPQ8KPhO9KQ+vWZ//yKeUIcFkGptMprmgIBS2jZ8m1KQ+4mQglL8 fpYlO4mmUnSP8Xm2dLcwgwDXFqSL/X86J0KQPz7s7op4s8NWGTymikkLJ/8zmpW9/euT UbYVN7xP927zKZud6X+uQXCmcYmQtASuyluyqYv8oq0NIUsRvlE1uzANeAAcJgqGwOY3 g121e6hV3vRJKtx0oy/d4Ir/oOdH9/lQtjyowWIqgrtmaCH1UYKcCIZsUVN3BglqH+68 IN+ZbRQrQPF4Bg1uc2lWR5+G1I31R+h2rTceK3CtRczSQ32K7X6/v1bhpZAsFZj3x2wr eF7w== ARC-Message-Signature: i=1; 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 :arc-authentication-results; bh=jt2yI170hpZ41dH262d36Ocjgc+6X2GSeS+kMDX5cB8=; b=ZXPdGs7oNjYXWkIYmsHDQKmCnFJkiFmRdvPzxr0YGNQq0ypeIAB77iAIna/JjQfTSE x297Ybm8IZ79kAYiAQGuZWIx4RdXQw5owqrZ9nIBaeYTOzGw4wX7q9moodzvUJfBdhkP ENGCdrw+ka1DEytzJgH5RQTGj0CzpQOuKjYWN5oqlil37BxOBTM5q3c3GEW2Ks7sJkCG vWZsiGz66W6P8QZlzKQstLBI06iK7lodWgnNFW8sgfLwvyJiczr1o7p1CSRVnlErDPk1 dynMUgyzw4y0QwwEXi57sMhTuFA7PTy7pcNrLnNzuuwa6oHy8ZfAzxyhnKh8V6+ySNzg Yvog== ARC-Authentication-Results: i=1; mx.google.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 x1-v6si12994588pga.480.2018.07.11.02.43.55; Wed, 11 Jul 2018 02:44:11 -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; 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 S1732766AbeGKJpq (ORCPT + 99 others); Wed, 11 Jul 2018 05:45:46 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:33599 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726812AbeGKJpp (ORCPT ); Wed, 11 Jul 2018 05:45:45 -0400 Received: from DGGEMA404-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id EAB7C9FF6F0A2; Wed, 11 Jul 2018 17:42:11 +0800 (CST) Received: from DGGEMA525-MBX.china.huawei.com ([169.254.6.69]) by DGGEMA404-HUB.china.huawei.com ([10.3.20.45]) with mapi id 14.03.0382.000; Wed, 11 Jul 2018 17:42:02 +0800 From: "Songxiaowei (Kirin_DRV)" To: Andy Shevchenko CC: Wangbinghui , Bjorn Helgaas , Lorenzo Pieralisi , "Rob Herring" , "linux-pci@vger.kernel.org" , Linux Kernel Mailing List , Suzhuangluan , Kongfei , "chenyao (F)" Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0ggdjcgMS8xXSBQQ0k6IGtpcmluOiBBZGQgTVNJIHN1?= =?utf-8?Q?pport?= Thread-Topic: [PATCH v7 1/1] PCI: kirin: Add MSI support Thread-Index: AQHUGO6PA45Gy6FIEku6EeNhdo92bKSJO5mAgACJJuA= Date: Wed, 11 Jul 2018 09:42:01 +0000 Message-ID: <99B4C6BADD9E3241B25E52B02BA737C5412D7FFB@dggema525-mbx.china.huawei.com> References: <20180711080946.14942-1-songxiaowei@hisilicon.com> <20180711080946.14942-2-songxiaowei@hisilicon.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.142.52.233] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5keSwNCg0KVGhhbmsgeW91IGEgbG90Lg0KDQpCZXN0IFJlZ2FyZHMsDQpYaWFvd2VpLg0K DQo+IC0tLS0t6YKu5Lu25Y6f5Lu2LS0tLS0NCj4g5Y+R5Lu25Lq6OiBBbmR5IFNoZXZjaGVua28g W21haWx0bzphbmR5LnNoZXZjaGVua29AZ21haWwuY29tXQ0KPiDlj5HpgIHml7bpl7Q6IDIwMTjl ubQ35pyIMTHml6UgMTc6MzANCj4g5pS25Lu25Lq6OiBTb25neGlhb3dlaSAoS2lyaW5fRFJWKSA8 c29uZ3hpYW93ZWlAaGlzaWxpY29uLmNvbT4NCj4g5oqE6YCBOiBXYW5nYmluZ2h1aSA8d2FuZ2Jp bmdodWlAaGlzaWxpY29uLmNvbT47IEJqb3JuIEhlbGdhYXMNCj4gPGJoZWxnYWFzQGdvb2dsZS5j b20+OyBMb3JlbnpvIFBpZXJhbGlzaSA8bG9yZW56by5waWVyYWxpc2lAYXJtLmNvbT47DQo+IFJv YiBIZX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YgKGlycSA8IDApIHsNCj4gPiArICAgICAg ICAgICAgICAgICAgICAgICBkZXZfZXJyKCZwZGV2LT5kZXYsDQo+ID4gKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAiZmFpbGVkIHRvIGdldCBNU0kgSVJRICglZClcbiIsIGlycSk7DQo+ ID4gKyAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGlycTsNCj4gPiArICAgICAgICAgICAg ICAgfQ0KPiA+ICsNCj4gPiArICAgICAgICAgICAgICAgcGNpLT5wcC5tc2lfaXJxID0gaXJxOw0K PiA+ICsgICAgICAgfQ0KPiA+ICsNCj4gPiArICAgICAgIHJldHVybiAwOw0KPiA+ICt9DQo+ID4g Kw0KPiA+ICBzdGF0aWMgaW50IF9faW5pdCBraXJpbl9hZGRfcGNpZV9wb3J0KHN0cnVjdCBkd19w Y2llICpwY2ksDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHJ1 Y3QgcGxhdGZvcm1fZGV2aWNlICpwZGV2KQ0KPiB7DQo+ID4gKyAgICAgICBpbnQgcmV0Ow0KPiA+ ICsNCj4gPiArICAgICAgIHJldCA9IGtpcmluX3BjaWVfYWRkX21zaShwY2ksIHBkZXYpOw0KPiA+ ICsgICAgICAgaWYgKHJldCkNCj4gPiArICAgICAgICAgICAgICAgcmV0dXJuIHJldDsNCj4gPiAr DQo+ID4gICAgICAgICBwY2ktPnBwLm9wcyA9ICZraXJpbl9wY2llX2hvc3Rfb3BzOw0KPiA+DQo+ ID4gICAgICAgICByZXR1cm4gZHdfcGNpZV9ob3N0X2luaXQoJnBjaS0+cHApOw0KPiA+IC0tDQo+ ID4gMi4xMS5HSVQNCj4gPg0KPiANCj4gDQo+IA0KPiAtLQ0KPiBXaXRoIEJlc3QgUmVnYXJkcywN Cj4gQW5keSBTaGV2Y2hlbmtvDQo=