From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: linux1394-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] firewire: fw-ohci: disable PHY packet reception into AR context
Date: Thu, 5 Jun 2008 20:49:38 +0200 (CEST) [thread overview]
Message-ID: <tkrat.8c942d590ea22fd3@s5r6.in-berlin.de> (raw)
In-Reply-To: <tkrat.1dfeb5ce5dd30360@s5r6.in-berlin.de>
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 explicitly off.
https://bugzilla.redhat.com/show_bug.cgi?id=244576#c48 shows that for
example the nForce2 integrated FireWire controller seems to have it on
by default.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
Supersedes patch "fw-ohci: clear LinkControl register when enabling the
chip". Changed from ~0 to OHCI1394_LinkControl_rcvPhyPkt bit only.
drivers/firewire/fw-ohci.c | 2 ++
1 file changed, 2 insertions(+)
Index: linux/drivers/firewire/fw-ohci.c
===================================================================
--- linux.orig/drivers/firewire/fw-ohci.c
+++ linux/drivers/firewire/fw-ohci.c
@@ -1473,6 +1473,8 @@ static int ohci_enable(struct fw_card *c
reg_write(ohci, OHCI1394_HCControlClear,
OHCI1394_HCControl_noByteSwapData);
+ reg_write(ohci, OHCI1394_LinkControlClear,
+ OHCI1394_LinkControl_rcvPhyPkt);
reg_write(ohci, OHCI1394_LinkControlSet,
OHCI1394_LinkControl_rcvSelfID |
OHCI1394_LinkControl_cycleTimerEnable |
--
Stefan Richter
-=====-==--- -==- --=-=
http://arcgraph.de/sr/
next prev parent reply other threads:[~2008-06-05 18:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 23:08 [PATCH] firewire: fw-ohci: clear LinkControl register when enabling the chip Stefan Richter
2008-06-05 18:49 ` Stefan Richter [this message]
2008-06-05 18:50 ` [PATCH] firewire: fw-ohci: write selfIDBufferPtr before LinkControl.rcvSelfID Stefan Richter
2008-06-05 19:13 ` Jarod Wilson
2008-06-13 13:50 ` Kristian Høgsberg
2008-06-05 19:10 ` [PATCH] firewire: fw-ohci: disable PHY packet reception into AR context Jarod Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tkrat.8c942d590ea22fd3@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®