firewire: Implement gap count optimization.
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c
index 439a3e3..57ecf95 100644
--- a/drivers/firewire/fw-transaction.c
+++ b/drivers/firewire/fw-transaction.c
@@ -274,11 +274,15 @@
card->driver->send_request(card, packet);
}
-void fw_send_force_root(struct fw_card *card, int node_id, int generation)
+void fw_send_phy_config(struct fw_card *card,
+ int node_id, int generation, int gap_count)
{
u32 q;
- q = phy_identifier(PHY_PACKET_CONFIG) | phy_config_root_id(node_id);
+ q = phy_identifier(PHY_PACKET_CONFIG) |
+ phy_config_root_id(node_id) |
+ phy_config_gap_count(gap_count);
+
send_phy_packet(card, q, generation);
}