Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1617406imu; Thu, 13 Dec 2018 19:42:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/XdIp8aG6al+WMkiOn2fCMz842Cy9OH4iqUzGPzW74CMsXBzTgqetqqP4X6HmirRYGgdKZq X-Received: by 2002:a17:902:161:: with SMTP id 88mr1449891plb.306.1544758940223; Thu, 13 Dec 2018 19:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544758940; cv=none; d=google.com; s=arc-20160816; b=DsMIlAC6pUcPkutaAWHQwp71aBP7/w9wZ5WrlU5OX9butIc7tOPojTKL2U2vrXr7y2 Nab3eWagWIowheMSFiy3Bob51Tsyc64+oXxx+sDz9tvT9MAYb/gTyU4z8Nzt67pYfFT/ ZSp7fJDrICxtFfliONQmd/eTrRk+Jv13JvJsk3H88aPJD1J5AUPABmTn3r9QcxAcf3Y5 RRNjwZVtVHvKLxTJCBMD7ybBx84vrcJ8En5S1wzn/NUB6dxB0vB/AZmQTMqBQ/DeLioG R7itZmtagFoB7zNrEmg1SEVs6Ku0Px2N7tD7k6i+BKTjvttrSZs+x/JLbgosz8lMTUlA f1/g== 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; bh=ZKa5uQ/zQSGb8y94GXYDHE0s1lCRkba1IGeMJ54wb1U=; b=xdx2Gllg8NcNdhu8MBmkspWbqXcqvWUKphi/m6xHuLWhtQPgeDngeUlKBZtvli2SSc SplAK2tr3arA1yAmOQOnjpSUb5rIf+oZIEpjgDLQx78PmOKik7VvY+12r+YY+4UgnNQU mXJnyBC/xv/oOEpVjbLLlpdVLBJSvmtrlT+yhHeEyBpFBj++pEDLXzVdnxFK2Pwonwj3 qy2j1oalJPfoG0bgrvCfhgA0HBZft/d59kpGFgVALdn+lyCOLitabyj8UKJAELCWOybw B+SOCjwsSpjEWd4FZwMY2zAY5Iaa2laEEjrRLZ4hW8ZUYKJkepwf/GJZiDYVVtfcoAkP dRmw== 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 n30si3089318pgb.406.2018.12.13.19.42.02; Thu, 13 Dec 2018 19:42:20 -0800 (PST) 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 S1726654AbeLNDkk (ORCPT + 99 others); Thu, 13 Dec 2018 22:40:40 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:41383 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726437AbeLNDkk (ORCPT ); Thu, 13 Dec 2018 22:40:40 -0500 X-UUID: abf5d5041799410788990da60a97c93a-20181214 X-UUID: abf5d5041799410788990da60a97c93a-20181214 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1912547139; Fri, 14 Dec 2018 11:40:34 +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.1395.4; Fri, 14 Dec 2018 11:40:33 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 14 Dec 2018 11:40:32 +0800 From: To: , , , , , , , CC: , , , , , Honghui Zhang Subject: [RFC PATCH] PCI/portdrv: Support for subtractive decode bridge Date: Fri, 14 Dec 2018 11:40:29 +0800 Message-ID: <1544758829-10327-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 The Class Code for subtractive decode PCI-to-PCI bridge is 060401h, change the class_mask values to make portdrv support this type bridge. Signed-off-by: Honghui Zhang --- drivers/pci/pcie/portdrv_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index eef22dc..86926ea 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -179,7 +179,7 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev) */ static const struct pci_device_id port_pci_ids[] = { { /* handle any PCI-Express port */ - PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0), + PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0x01), }, { /* end: all zeroes */ } }; -- 2.6.4