Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp43733imm; Sun, 8 Jul 2018 18:57:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcP3cPcHMU4kjwsmPHk7XbmVJHRSryYFpUdXG/x3G9jBuf6n1TXxAR6ql0XvBN0/s/gxdkk X-Received: by 2002:a65:53cb:: with SMTP id z11-v6mr16982604pgr.218.1531101450035; Sun, 08 Jul 2018 18:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531101450; cv=none; d=google.com; s=arc-20160816; b=skOFhgy59L+O/Xym44sOMSMoaUWzt69HB6E6x1iBqOUFJeOLSa9kWKEVgSQbHzVzyc Uz2mQtWPjmY7hkf/LOQ3DKTv22St3+LTtNDKPcT7U9YqheZLrRVx5Om1Be30dlbz5xB6 n7sOGJld16Lzw/cToeXG8vd4ZiJcvtROKitl5Q4EHo96xtIWdMyC1wzfiFIW8z3LJbWG 9yevwwI4VJyV1Ptil914KyLx/Lrj/QV+R6Yyv50im9qGEK4BmfieHv3Y5g8zhT3wROkS OjuqEDQ72hZfDGe+UTWBunUSlF/Bgw9IsvpBi1vJmiZkhG5FvBTCwLF1hSuOeZ45BCUy jrFQ== 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=s4sxrSRlLTyIkQeAJsbpSlk3hFPQUcLF91v7TQfSh7k=; b=FWEjJ+nc0r+qTJ7T4lIsvSzIEaQnRDLfP6wF1kopEQY0yFtqTxQPjgTJiea9IRsRiE AdOPcyoZScn87U/5EIZ5US0Uz52btNnMBb/u/eRDsSa4MB06BGodILJekfduBJ6JlGDM n90psXCC+O92HwI8m7u+FUDHb7f3okzFALog8Hygm/FXco1i7RUlBbiwBVtSOvO7fgfk DL9gx3FIvTErzg1zFpanqwCP1hQc/AHjCAppcLspcTEPAHJ148/tiTx4Rr+R6LABjLtE 5ZqpKzs2O7yuXwHhKeP3TFZpNAXrhfOR6c4H1mKrJSrtMqJHQT0dTPjuh21bCu8Z/hFI j2vQ== 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 p8-v6si13273546plk.441.2018.07.08.18.57.15; Sun, 08 Jul 2018 18:57:30 -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 S1754410AbeGIByV (ORCPT + 99 others); Sun, 8 Jul 2018 21:54:21 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:49931 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754239AbeGIByT (ORCPT ); Sun, 8 Jul 2018 21:54:19 -0400 Received: from DGGEMA403-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id AB6C094830780; Mon, 9 Jul 2018 09:54:16 +0800 (CST) Received: from DGGEMA525-MBX.china.huawei.com ([169.254.6.69]) by DGGEMA403-HUB.china.huawei.com ([10.3.20.44]) with mapi id 14.03.0382.000; Mon, 9 Jul 2018 09:54:06 +0800 From: "Songxiaowei (Kirin_DRV)" To: "bhelgaas@google.com" , "robh+dt@kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "chenyao (F)" Subject: =?gb2312?B?tPC4tDogW1BBVENIIHY1IDEvMV0gUENJOiBraXJpbjogQWRkIE1TSSBzdXBw?= =?gb2312?Q?ort?= Thread-Topic: [PATCH v5 1/1] PCI: kirin: Add MSI support Thread-Index: AQHUDt5H/LVbU24kr06E1Y+CfLvSSaSGL5zQ Date: Mon, 9 Jul 2018 01:54:07 +0000 Message-ID: <99B4C6BADD9E3241B25E52B02BA737C5412D2511@dggema525-mbx.china.huawei.com> References: <20180628124803.110315-1-songxiaowei@hisilicon.com> <20180628124803.110315-2-songxiaowei@hisilicon.com> In-Reply-To: <20180628124803.110315-2-songxiaowei@hisilicon.com> 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="gb2312" 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 SGkgQmpvcm4gSGVsZ2FhcywNCg0KV291bGQgeW91IGhlbHAgdG8gcmV2aWV3IHRoaXMgcGF0Y2g/ DQoNCkJlc3QgcmVnYXJkcywNCg0KWGlhb3dlaS4NCg0KPiAtLS0tLdPKvP7Urbz+LS0tLS0NCj4g t6K8/sjLOiBTb25neGlhb3dlaSAoS2lyaW5fRFJWKQ0KPiC3osvNyrG85DogMjAxOMTqNtTCMjjI 1SAyMDo0OA0KPiDK1bz+yMs6IFdhbmdiaW5naHVpIDx3YW5nYmluZ2h1aUBoaXNpbGljb24uY29t PjsgYmhlbGdhYXNAZ29vZ2xlLmNvbTsNCj4gcm9iaCtkdEBrZXJuZWwub3JnOyBsaW51eC1wY2lA dmdlci5rZXJuZWwub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOw0KPiBkaW1pdHJ5 c2hAZ29vZ2xlLmNvbQ0KPiCzrcvNOiBjaGVueWFvIChGKSA8Y2hlbnlhbzExQGh1YXdlaS5jb20+ OyBTb25neGlhb3dlaSAoS2lyaW5fRF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