NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topology
authorSerge Semin <fancer.lancer@gmail.com>
Wed, 6 Dec 2017 14:32:06 +0000 (17:32 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:24 +0000 (22:17 -0500)
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: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/idt/ntb_hw_idt.c

index 93d4c9d..8d98872 100644 (file)
@@ -2070,7 +2070,7 @@ static int idt_register_device(struct idt_ntb_dev *ndev)
 
        /* Initialize the rest of NTB device structure and register it */
        ndev->ntb.ops = &idt_ntb_ops;
-       ndev->ntb.topo = NTB_TOPO_PRI;
+       ndev->ntb.topo = NTB_TOPO_SWITCH;
 
        ret = ntb_register_device(&ndev->ntb);
        if (ret != 0) {