Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp211427pxf; Thu, 11 Mar 2021 01:54:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQoxE/pwNAt5TDMkei+Ct6K6WyspH8Uso8tMJOT1j9UCFph+nD9QY5hsVjJGoiwzJ1xhoT X-Received: by 2002:a05:6402:350f:: with SMTP id b15mr7644674edd.6.1615456461303; Thu, 11 Mar 2021 01:54:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615456461; cv=none; d=google.com; s=arc-20160816; b=qTodMTjYTwAFdtHvW+stK6VWO0WHOBicgiQ8+mBjgCL8FHIWLvlB1FhA03OnRE7dpn M4pp3lJC7U5bNyEXVLPGn7DWPBMfHPyDKpxU3ZevYtiMrEnG7YAwoV+XK/+12WC8aSTO iyetpjmfC8hw5ZZyDEi4MFMtBa5w6UnTvZWqeSReNZQVOkPMiA55L2kZAlUC+4V/nqc4 qfUPCQOS+VkDnUDiGmh+jn/V1ZH8da2tzYmIBusKCx6ZSVm91NWbNe3HJKmWyMUOSwq2 e17nnsJeeyiAezbeO1LJd0iG1LIn84cpTNfBjQOHP9gkHC8wpzAhsSdG3vWj/4oFqhpe 9IrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=a9ej59heEilQzTKWC4HbE25Ht5GD9Ct0059vCNX/I/s=; b=uCOjKbXtJI9uHVEv+EvSm5w7S5XMFtxTnhiP704OC9I30LhAQ+C8xlGu+GkTgKX8Tb irjRAJaqlMvmjpCShjSaQi+PajLwJKZqOFFy8baaJ8G65vjEgCoBvcmYnsZ6XS1Yvd/L S4gCW0uRdjE65yShgP16HgyuZbU30n4GLMQgGIzNTpE/BgxLRQwnkyH0scy3HrNJbeMT mYA0gisu+UL6vet4pUs5b2B1hiM39eiQURVV7LmUTTUMw9NJUs9BmoP0JXk0Ax42ZqNF 7yb6WREObX1pl7+XIESrlwIM5iiEm82GRRCumBQr2cRWHCoHDavVwl1gckgfFX0rBRad AeHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="b/fiesXn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si1387534ejb.447.2021.03.11.01.53.59; Thu, 11 Mar 2021 01:54:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="b/fiesXn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231937AbhCKJus (ORCPT + 99 others); Thu, 11 Mar 2021 04:50:48 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:23322 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232120AbhCKJuZ (ORCPT ); Thu, 11 Mar 2021 04:50:25 -0500 X-UUID: e5328eea42a34bd78e6899844d53d5dc-20210311 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=a9ej59heEilQzTKWC4HbE25Ht5GD9Ct0059vCNX/I/s=; b=b/fiesXnCh7ySSCfvoHnSxpK/D4VYjfKySMm1KzuavvUqrRLcZl0zuryJ9ZuWVp0dbATFvwLXEC1/GFGdB7hg5cijeMlJ38lux1g+R/ZkJgyHWNftPczFTIyhV4czctrYw9SvggcuJEMSXuoCIhSlnMBZiGNIhg9W1/aXCLoFV4=; X-UUID: e5328eea42a34bd78e6899844d53d5dc-20210311 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1471753253; Thu, 11 Mar 2021 17:50:17 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 11 Mar 2021 17:50:15 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 11 Mar 2021 17:50:14 +0800 Message-ID: <1615456214.25662.62.camel@mhfsdcap03> Subject: Re: [v8,5/7] PCI: mediatek-gen3: Add MSI support From: Jianjun Wang To: Marc Zyngier , Pali =?ISO-8859-1?Q?Roh=E1r?= CC: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Ryder Lee , Philipp Zabel , "Matthias Brugger" , , , , , , "Sj Huang" , , , , , , , Date: Thu, 11 Mar 2021 17:50:14 +0800 In-Reply-To: References: <20210224061132.26526-1-jianjun.wang@mediatek.com> <20210224061132.26526-6-jianjun.wang@mediatek.com> <20210311000555.epypouwxdbql2aqx@pali> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: F9A112B6DED8DAAFAF6E68A112F27E84405F5EF3E9F86C2A91FF46CE880EBB382000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIxLTAzLTExIGF0ID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