From patchwork Wed Dec 27 00:59:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honghui Zhang X-Patchwork-Id: 853028 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z5vfG1HVQz9s7n for ; Wed, 27 Dec 2017 12:00:22 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751211AbdL0BAG (ORCPT ); Tue, 26 Dec 2017 20:00:06 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46018 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751266AbdL0BAE (ORCPT ); Tue, 26 Dec 2017 20:00:04 -0500 X-UUID: 43c2d5c6b2d34f738a94c8c9edd368d3-20171227 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1183114504; Wed, 27 Dec 2017 08:59:59 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 27 Dec 2017 08:59:57 +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; Wed, 27 Dec 2017 08:59:56 +0800 From: To: , , , , , , , , , , CC: , , , , , , Subject: [PATCH v5 0/2] PCI: mediatek: Fixups for the IRQ handle routine and MT7622's class code Date: Wed, 27 Dec 2017 08:59:52 +0800 Message-ID: <1514336394-17747-1-git-send-email-honghui.zhang@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 X-MTK: N Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Honghui Zhang Two fixups for mediatek's host bridge: The first patch fixup the IRQ handle routine to avoid IRQ reentry which may exist for both MT2712 and MT7622. The second patch fixup class type for MT7622. 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: Clear IRQ status after IRQ dispatched to avoid reentry PCI: mediatek: Set up class type and vendor ID for MT7622 drivers/pci/host/pcie-mediatek.c | 23 ++++++++++++++++++----- include/linux/pci_ids.h | 2 ++ 2 files changed, 20 insertions(+), 5 deletions(-)