[lkml]   [2008]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] firewire: fw-ohci: clear LinkControl register when enabling the chip
We want the rcvPhyPkt bit in LinkControl off before we start using the
chip. However, the spec says that the reset value of it is undefined.
Hence switch it (and all other bits while we are at it) explicitly off. shows that for
example the nForce2 integrated FireWire controller seems to have it on
by default.

Signed-off-by: Stefan Richter <>
drivers/firewire/fw-ohci.c | 1 +
1 file changed, 1 insertion(+)

Index: linux/drivers/firewire/fw-ohci.c
--- linux.orig/drivers/firewire/fw-ohci.c
+++ linux/drivers/firewire/fw-ohci.c
@@ -1473,6 +1473,7 @@ static int ohci_enable(struct fw_card *c
reg_write(ohci, OHCI1394_HCControlClear,

+ reg_write(ohci, OHCI1394_LinkControlClear, ~0);
reg_write(ohci, OHCI1394_LinkControlSet,
OHCI1394_LinkControl_rcvSelfID |
OHCI1394_LinkControl_cycleTimerEnable |
Stefan Richter
-=====-==--- -==- ----=

 \ /
  Last update: 2008-06-01 01:11    [W:0.052 / U:0.536 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site