Received: by 10.192.165.148 with SMTP id m20csp308004imm; Thu, 19 Apr 2018 22:29:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Dqqo0XkSYCgMjOOvDXRVm/p+kafIqLL4IexzTkt9jF4VbqVUnjkabnikLtsd5lNYSqxGv X-Received: by 2002:a17:902:57c7:: with SMTP id g7-v6mr8771986plj.222.1524202182790; Thu, 19 Apr 2018 22:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524202182; cv=none; d=google.com; s=arc-20160816; b=gxMGINtUmEe9uqtvm3KWMVgvxp1aXCUH5mrEx4jOLXpJRCoemv6qKHhdQ2i7oxExgx s/Sk386Bkttp/j8PQYjHzQvZe+fWxAb745fU9qKSk/dpbGQfF0ZNGwODQY7rIqkc/A1B GukGy/EaN1//ZTLlsvyvAa+NUxeJJEJ86EwOb+XVP4gOhyKgi9SmRv27Z+3D3lyjSgHQ l2yn2dbkLW2T0plt0LR4woPO/STflN0BtgJJTW9C6ri9dS/bI8bdk70Qs96mmCr3cBmL 7pF0YU1SSC24iVIvyX4C2526rgKpDBbEaIt8EAn/d1cWMKpZVl2w5txx5wfzWq/1vpNq aQ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=M21klRcZ30pBfI2ZsJpEJooOjmYMFWhaHFXIm99eDXI=; b=ofujjM6CXynRow9q/xL45jN9O4TcFhbbMiZiPPqgDWMXDrUvztd9MIRoQGdQDWDa4E 3LSa1+Sb76JBbFnwGNgwBFFX3/jq/CWFp9rD4P9r5mBXhJbBnDqnIZjCCKxQ+OJvrdci UDfMYmNLjcUx4dull2rQ/in2QcPnayw7B5s8zuLDiub1DLAkroAmFhftz7Ut7L7934lV HGUoMBdfIkknBXOJRvr4kPHoBluNaNhfQMmWIjt+hWz7+CvRHqKwNuKd+hA+FbCWVLyO pwIfuP4hbKqpJkVyq5NpmyvCdWuhOwu4DybnI+niQYVvYfk/TDJ8qRcgMOEWhhvwpFFg GOFQ== 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 q24si4542398pff.13.2018.04.19.22.29.28; Thu, 19 Apr 2018 22:29:42 -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 S1753485AbeDTFZ3 (ORCPT + 99 others); Fri, 20 Apr 2018 01:25:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36678 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750841AbeDTFZ2 (ORCPT ); Fri, 20 Apr 2018 01:25:28 -0400 X-UUID: e5af687fbe484027a34b7406c9960ec5-20180420 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1489843832; Fri, 20 Apr 2018 13:25:20 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 20 Apr 2018 13:25:17 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 20 Apr 2018 13:25:16 +0800 From: To: , , , , , , , , , , , CC: , , , , , , Subject: [PATCH v6 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code Date: Fri, 20 Apr 2018 13:25:08 +0800 Message-ID: <1524201910-22836-1-git-send-email-honghui.zhang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.6.4