aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core-card.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2010-06-10 02:26:28 -0400
committerClemens Ladisch <clemens@ladisch.de>2010-06-10 02:26:28 -0400
commit8e4b50f94e8c1435a3e0ece42b7f97bc857d0145 (patch)
treeaad5b85a0bf67b5a7bbd80e1dad2d2a2d9b85470 /drivers/firewire/core-card.c
parent446eba0d6896787b2f02f7a665838d32aa7b9d3f (diff)
firewire: core: add CSR SPLIT_TIMEOUT support
Implement the SPLIT_TIMEOUT registers. Besides being required by the spec, this is desirable for some IIDC devices and necessary for many audio devices to be able to increase the timeout from userspace. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'drivers/firewire/core-card.c')
-rw-r--r--drivers/firewire/core-card.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
index 901435cdd5c2..d0f15c2f1e1d 100644
--- a/drivers/firewire/core-card.c
+++ b/drivers/firewire/core-card.c
@@ -428,6 +428,10 @@ void fw_card_initialize(struct fw_card *card,
428 card->device = device; 428 card->device = device;
429 card->current_tlabel = 0; 429 card->current_tlabel = 0;
430 card->tlabel_mask = 0; 430 card->tlabel_mask = 0;
431 card->split_timeout_hi = 0;
432 card->split_timeout_lo = 800 << 19;
433 card->split_timeout_cycles = 800;
434 card->split_timeout_jiffies = DIV_ROUND_UP(HZ, 10);
431 card->color = 0; 435 card->color = 0;
432 card->broadcast_channel = BROADCAST_CHANNEL_INITIAL; 436 card->broadcast_channel = BROADCAST_CHANNEL_INITIAL;
433 437