提交 6952c6de 编写于 作者: S Serge Semin 提交者: Jon Mason

NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topology

Since Switchtec patch there has been a new topology added to
the NTB API. It's called NTB_TOPO_SWITCH and dedicated for
PCIe switch chips. Even though topo field isn't used within the
IDT driver much, lets set it for the sake of unification.
Signed-off-by: NSerge Semin <fancer.lancer@gmail.com>
Signed-off-by: NJon Mason <jdmason@kudzu.us>
上级 4517a570
...@@ -2070,7 +2070,7 @@ static int idt_register_device(struct idt_ntb_dev *ndev) ...@@ -2070,7 +2070,7 @@ static int idt_register_device(struct idt_ntb_dev *ndev)
/* Initialize the rest of NTB device structure and register it */ /* Initialize the rest of NTB device structure and register it */
ndev->ntb.ops = &idt_ntb_ops; ndev->ntb.ops = &idt_ntb_ops;
ndev->ntb.topo = NTB_TOPO_PRI; ndev->ntb.topo = NTB_TOPO_SWITCH;
ret = ntb_register_device(&ndev->ntb); ret = ntb_register_device(&ndev->ntb);
if (ret != 0) { if (ret != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册