aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/ohci.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/ohci.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/ohci.c')
-rw-r--r--drivers/firewire/ohci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
index a55fbbce9e79..777811a736b2 100644
--- a/drivers/firewire/ohci.c
+++ b/drivers/firewire/ohci.c
@@ -1996,6 +1996,13 @@ static void ohci_write_csr_reg(struct fw_card *card, int csr_offset, u32 value)
1996 flush_writes(ohci); 1996 flush_writes(ohci);
1997 break; 1997 break;
1998 1998
1999 case CSR_CYCLE_TIME:
2000 reg_write(ohci, OHCI1394_IsochronousCycleTimer, value);
2001 reg_write(ohci, OHCI1394_IntEventSet,
2002 OHCI1394_cycleInconsistent);
2003 flush_writes(ohci);
2004 break;
2005
1999 default: 2006 default:
2000 WARN_ON(1); 2007 WARN_ON(1);
2001 break; 2008 break;