aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core-transaction.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2010-06-10 02:26:48 -0400
committerClemens Ladisch <clemens@ladisch.de>2010-06-10 02:26:48 -0400
commit9ab5071cd4a16001e4ba790172a7da5e4172462b (patch)
treebb1ba598d4f2df93b661411c833b60bb953e3390 /drivers/firewire/core-transaction.c
parent8e4b50f94e8c1435a3e0ece42b7f97bc857d0145 (diff)
firewire: add CSR CYCLE_TIME write support
The specification requires that CYCLE_TIME is writable so that it can be initialized, so we better implement it. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'drivers/firewire/core-transaction.c')
-rw-r--r--drivers/firewire/core-transaction.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c
index 9a7d3ec23f2..e3925f67ec1 100644
--- a/drivers/firewire/core-transaction.c
+++ b/drivers/firewire/core-transaction.c
@@ -1097,6 +1097,9 @@ static void handle_registers(struct fw_card *card, struct fw_request *request,
1097 if (TCODE_IS_READ_REQUEST(tcode) && length == 4) 1097 if (TCODE_IS_READ_REQUEST(tcode) && length == 4)
1098 *data = cpu_to_be32(card->driver-> 1098 *data = cpu_to_be32(card->driver->
1099 read_csr_reg(card, CSR_CYCLE_TIME)); 1099 read_csr_reg(card, CSR_CYCLE_TIME));
1100 else if (tcode == TCODE_WRITE_QUADLET_REQUEST)
1101 card->driver->write_csr_reg(card, CSR_CYCLE_TIME,
1102 be32_to_cpu(*data));
1100 else 1103 else
1101 rcode = RCODE_TYPE_ERROR; 1104 rcode = RCODE_TYPE_ERROR;
1102 break; 1105 break;