* [RFC PATCH v2] PCI/portdrv: Support for subtractive decode bridge
@ 2019-02-14 5:21 honghui.zhang
2019-02-14 23:41 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: honghui.zhang @ 2019-02-14 5:21 UTC (permalink / raw)
To: lorenzo.pieralisi, bhelgaas, linux-arm-kernel, linux-mediatek,
linux-pci, linux-kernel, ryder.lee, matthias.bgg
Cc: youlin.pei, poza, fred, rafael.j.wysocki, jianjun.wang, Honghui Zhang
From: Honghui Zhang <honghui.zhang@mediatek.com>
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 <honghui.zhang@mediatek.com>
---
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH v2] PCI/portdrv: Support for subtractive decode bridge
2019-02-14 5:21 [RFC PATCH v2] PCI/portdrv: Support for subtractive decode bridge honghui.zhang
@ 2019-02-14 23:41 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2019-02-14 23:41 UTC (permalink / raw)
To: honghui.zhang
Cc: youlin.pei, lorenzo.pieralisi, poza, fred, linux-pci,
rafael.j.wysocki, linux-kernel, jianjun.wang, ryder.lee,
linux-mediatek, matthias.bgg, linux-arm-kernel
On Thu, Feb 14, 2019 at 01:21:17PM +0800, honghui.zhang@mediatek.com wrote:
> From: Honghui Zhang <honghui.zhang@mediatek.com>
>
> 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 <honghui.zhang@mediatek.com>
Applied to pci/portdrv for v5.1, thanks!
> ---
> 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
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-14 23:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 5:21 [RFC PATCH v2] PCI/portdrv: Support for subtractive decode bridge honghui.zhang
2019-02-14 23:41 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).