diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2010-06-10 08:26:28 +0200 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2010-06-10 08:26:28 +0200 |
commit | 8e4b50f94e8c1435a3e0ece42b7f97bc857d0145 (patch) | |
tree | aad5b85a0bf67b5a7bbd80e1dad2d2a2d9b85470 /drivers/firewire/core-card.c | |
parent | 446eba0d6896787b2f02f7a665838d32aa7b9d3f (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.c | 4 |
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, card->device = device; card->current_tlabel = 0; card->tlabel_mask = 0; + card->split_timeout_hi = 0; + card->split_timeout_lo = 800 << 19; + card->split_timeout_cycles = 800; + card->split_timeout_jiffies = DIV_ROUND_UP(HZ, 10); card->color = 0; card->broadcast_channel = BROADCAST_CHANNEL_INITIAL; |