Received: by 10.192.165.148 with SMTP id m20csp3278871imm; Sun, 29 Apr 2018 19:03:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq6NkDRh6X24nylkZwUdTHomZvFyAe1KJZTAZb3Odaa4yw4Iwm7CRFdiJe6DYF5J9rNQi/3 X-Received: by 10.98.30.4 with SMTP id e4mr10427695pfe.212.1525053800075; Sun, 29 Apr 2018 19:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525053800; cv=none; d=google.com; s=arc-20160816; b=tEX+WT5pcMlTg/7/SkpVfgy9LYQw8QisunoDwJB0wGfPieOi2GCfMBuM+vm7LKY8iH Sr/tgBJt7xJfpy2bO5uRXX6Bq1+LG+r3SX3PRi80F0B45SwxSZ85Tw4HclOaiiGTYBNu +VAh+pX9EPN/HUrRm2i/kiCm5TSVUZrjRmAtJcpDHY+YQAIsLU3wQjCYnIw9pXGXUErW KFiRgMAiruUdZaQBCsqa5pWjZZY05BHRd9i2t9K158/3wtywb1SeWRYP7V0M4YOykNcj jHVl1JoOfvBft/HJTUC8LiJERwPoIqckUuaDvb2OUzOwTzysq/mD7/NpX/AxQW2TftTF TbeQ== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=9427KEf3iQwYQJHuoDtCrq5e0CB8BbYk/EkTVVOkQno=; b=TPt4MKFWG0gmJIjRclktWRwXBvR4BRFHwKV3vVuJw+qcnFa6dpJTcyUgnfrTwBcNSG WERc/3ayKz0z/yzCMMQQPwepDaxoK1DkT1c+BGHjPb1wIS4cxh3AzrwHNSzp/lyAxrz9 StptPSX6GxdAVvy+y5aCFH9AeUQgA3JIJL/ZDp+YNXDZ6rzgMB8EGw7bhjkkMRjRVdEa QUgzJr+6dSOgbYXr8pZE1VA9LuTB5ldhfIhtassASA923lmVeG76FxcjRYlnv7a9bzmJ GrJhOllXwqBNcPR2PPVupclCXzffTj2ppFxw0G5lCpc3RKpgT9pWLCG0g9gcvoo6AW8Q ukSA== 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 o7-v6si5347521pgp.525.2018.04.29.19.02.52; Sun, 29 Apr 2018 19:03:20 -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 S1753904AbeD3CCn (ORCPT + 99 others); Sun, 29 Apr 2018 22:02:43 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:28619 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753822AbeD3CCl (ORCPT ); Sun, 29 Apr 2018 22:02:41 -0400 X-UUID: ecb9c392048a436195f91e2452d3f592-20180430 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 475893842; Mon, 30 Apr 2018 10:02:28 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 30 Apr 2018 10:02:26 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 30 Apr 2018 10:02:26 +0800 Message-ID: <1525053746.5013.8.camel@mtkswgap22> Subject: Re: [PATCH v6 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code From: Ryder Lee To: Honghui Zhang =?UTF-8?Q?=28=E5=BC=A0=E6=B4=AA=E8=BE=89=29?= CC: "lorenzo.pieralisi@arm.com" , "marc.zyngier@arm.com" , "bhelgaas@google.com" , "matthias.bgg@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Yingjoe Chen =?UTF-8?Q?=28=3F=3F=E8=8B=B1=E6=B4=B2=29?= , Eddie Huang =?UTF-8?Q?=28=3FS=3F=C7=82=3F=29?= , Youlin Pei =?UTF-8?Q?=28=E8=A3=B4=E5=8F=8B=E6=9E=97=29?= , Hongkun Cao =?UTF-8?Q?=28=E6=9B=B9=E6=B4=AA=E5=9D=A4=29?= , Sean Wang =?UTF-8?Q?=28=E7=8E=8B=E5=BF=97=E4=BA=98=29?= , Xinping Qian =?UTF-8?Q?=28=E9=92=B1=E6=96=B0=E5=B9=B3=29?= , Yong Wu =?UTF-8?Q?=28=E5=90=B4=E5=8B=87=29?= Date: Mon, 30 Apr 2018 10:02:26 +0800 In-Reply-To: <1524201910-22836-1-git-send-email-honghui.zhang@mediatek.com> References: <1524201910-22836-1-git-send-email-honghui.zhang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-04-20 at 13:25 +0800, Honghui Zhang (张洪辉) wrote: > From: Honghui Zhang > > Two fixups for mediatek's host bridge: > The first patch fixup class type and vendor ID for MT7622. > The second patch fixup the IRQ handle routine by using irq_chip solution > to avoid IRQ reentry which may exist for both MT2712 and MT7622. > > Change since v5: > - Make the comments consistend with the code modification in the first patch. > - Using writew to performing a 16-bit write. > - Using irq_chip solution to fix the IRQ issue. > > The v5 patchset could be found in: > https://patchwork.kernel.org/patch/10133303 > https://patchwork.kernel.org/patch/10133305 > > Change since v4: > - Only setup vendor ID for MT7622, igorning the device ID since mediatek's > host bridge driver does not cares about the device ID. > > Change since v3: > - Setup the class type and vendor ID at the beginning of startup instead > of in a quirk. > - Add mediatek's vendor ID, it could be found in: > https://pcisig.com/membership/member-companies?combine=&page=4 > > Change since v2: > - Move the initialize of the iterate before the loop to fix an > INTx IRQ issue in the first patch > > Change since v1: > - Add the second patch. > - Make the first patch's commit message more standard. > Honghui Zhang (2): > PCI: mediatek: Set up vendor ID and class type for MT7622 > PCI: mediatek: Using chained IRQ to setup IRQ handle > > drivers/pci/host/pcie-mediatek.c | 220 +++++++++++++++++++++++---------------- > include/linux/pci_ids.h | 2 + > 2 files changed, 133 insertions(+), 89 deletions(-) Acked-by: Ryder Lee for the series. Thanks