firewire: optimize gap count with 1394b leaf nodes
[deliverable/linux.git] / drivers / firewire / fw-card.c
index 9eb1edacd825d3d4c4e5d345bfb9c869bef98aaa..0aeab3218bb6d6b8c503b2f2386133e611f4a5f7 100644 (file)
@@ -336,8 +336,11 @@ fw_card_bm_work(struct work_struct *work)
        }
 
  pick_me:
-       /* Now figure out what gap count to set. */
-       if (card->topology_type == FW_TOPOLOGY_A &&
+       /*
+        * Pick a gap count from 1394a table E-1.  The table doesn't cover
+        * the typically much larger 1394b beta repeater delays though.
+        */
+       if (!card->beta_repeaters_present &&
            card->root_node->max_hops < ARRAY_SIZE(gap_count_table))
                gap_count = gap_count_table[card->root_node->max_hops];
        else
This page took 0.029894 seconds and 5 git commands to generate.