mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew de Quincey <adq_dvb@lidskialf.net>
To: linux1394-devel@lists.sourceforge.net,
	lkml <linux-kernel@vger.kernel.org>
Cc: torvalds@osdl.org
Subject: [PATCH] 2.4.23-pre8 ieee1394 on nforce2
Date: Tue, 28 Oct 2003 22:16:53 +0000	[thread overview]
Message-ID: <200310282216.53346.adq_dvb@lidskialf.net> (raw)

Hi, ieee1394 does not work on my nforce2 motherboard. This patch fixes it. Please apply.

This basically enables each port supported by the ieee1394 PHY device, something 
my BIOS/ the current code neglects to do.

diff -Naurb linux-2.4.23-pre8.orig/drivers/ieee1394/ohci1394.c linux-2.4.23-pre8/drivers/ieee1394/ohci1394.c
--- linux-2.4.23-pre8.orig/drivers/ieee1394/ohci1394.c	2003-08-25 12:44:41.000000000 +0100
+++ linux-2.4.23-pre8/drivers/ieee1394/ohci1394.c	2003-10-28 22:06:56.545324800 +0000
@@ -504,6 +504,7 @@
 static void ohci_initialize(struct ti_ohci *ohci)
 {
 	char irq_buf[16];
+	int numports, port;
 	quadlet_t buf;
 
 	spin_lock_init(&ohci->phy_reg_lock);
@@ -615,6 +616,14 @@
 	      pci_resource_start(ohci->dev, 0),
 	      pci_resource_start(ohci->dev, 0) + OHCI1394_REGISTER_SIZE - 1,
 	      ohci->max_packet_size);
+
+	/* enable all ports on the PHY, in case the BIOS has neglected to */
+	numports = get_phy_reg(ohci, 2) & 0xf;
+	for(port=0; port < numports; port++) {
+		// choose the port and enable it
+		set_phy_reg(ohci, 7, (0 << 5) | (port & 0xf));
+		set_phy_reg(ohci, 8, (get_phy_reg(ohci, 8) & ~1));
+	}
 }
 
 /* 


                 reply	other threads:[~2003-10-28 22:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200310282216.53346.adq_dvb@lidskialf.net \
    --to=adq_dvb@lidskialf.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=torvalds@osdl.org \
    /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®