Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1214953imj; Thu, 14 Feb 2019 03:07:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+e2oxXn0iEp9xd7TLzLt9CWY2Ja7nZBhFCehhGRasbnXnxmSW3EmpGsDgLkTtbWtV5uKz X-Received: by 2002:a65:6150:: with SMTP id o16mr3252025pgv.434.1550142420768; Thu, 14 Feb 2019 03:07:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550142420; cv=none; d=google.com; s=arc-20160816; b=OHxumlgg9gRII0oOSV3t1qeUP3o4qKH+17j2ex67r6k8wZZde6a8U1T1enTcB66QJM sjmh4kq72tNT1nykJ6qun4Kqfl+Pw0KNOs+VBjeft5eUIhckElqnI2YJmMd+mbvQMgT8 hLtqb4LbnBKOv3Gc6DZx511D4t1WW4RBd/s/LbUBnHodM6wYPI+umX3MO+D1+dEQCC2A RGQ/EgvbHKVbXigNYZywQZ4fv30SEgkq1gifr7rc/qeZy6Lo2kwAdJQZtTPpc4qzj0pm v5pPdB+oeIcoh1JkIDnnChaEJ6So8pY1iBB8erdvUm9PXStFwi7iHXZbQ347uxGbzbm6 CnGA== 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=zx8j26QmQrDYxqvcU8Dd49h+RCb8fnE+i86ReGI2Z9M=; b=wh8ntD1Nvl8TsSl9QKbztd5+dLYiXL+O3e69NsWaAQEmrwrZCSC023pHGGd/V8VIeJ JPs+ZCvQzdWQ5+kiPHJxWfhA3OFvBf6zasZ40pcl0JRJClv4Slzla4OmllU7+L2ovfzs sGGH0YRnVly+QYi+yeKmqpSAiE8BG056WjfGSe6b8PZreMtuDwn5pW71+o9ov96PXAGI RXeRknNjGAF+6L27dmDOtDI9fJyy6QVygnKQz1sYH0z5b+M29HbzxhwFWjNdztysnBrP hwaMQtXSI9eI3BA+2IyfMI6XPnxu1QjYCODEozYWmPBWoNNs0VKbqCuAER/AgY17uPdz OYvQ== 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 e67si2447653pfh.212.2019.02.14.03.06.43; Thu, 14 Feb 2019 03:07:00 -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 S2391006AbfBNFVf (ORCPT + 99 others); Thu, 14 Feb 2019 00:21:35 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:52112 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728142AbfBNFVf (ORCPT ); Thu, 14 Feb 2019 00:21:35 -0500 X-UUID: a7d591df7ccd48f9b19305de9f069ef7-20190214 X-UUID: a7d591df7ccd48f9b19305de9f069ef7-20190214 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 480518818; Thu, 14 Feb 2019 13:21:22 +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.1395.4; Thu, 14 Feb 2019 13:21:19 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 14 Feb 2019 13:21:19 +0800 From: To: , , , , , , , CC: , , , , , Honghui Zhang Subject: [RFC PATCH v2] PCI/portdrv: Support for subtractive decode bridge Date: Thu, 14 Feb 2019 13:21:17 +0800 Message-ID: <1550121677-10474-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-TM-SNTS-SMTP: F60A0AB08701BE2BD8AE978E34BA7216B614123A24FDBF4810606BD74FB69C712000:8 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, add one entry to make portdrv support this type bridge. Signed-off-by: Honghui Zhang --- drivers/pci/pcie/portdrv_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 0acca35..c129f2f 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c @@ -185,6 +185,8 @@ 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), + /* subtractive decode PCI-to-PCI bridge, class type is 060401h */ + PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x01), ~0), }, { /* end: all zeroes */ } }; -- 2.6.4