* [PATCH] 2.6.0-test9 ieee1394 on nforce2
@ 2003-10-28 22:17 Andrew de Quincey
0 siblings, 0 replies; only message in thread
From: Andrew de Quincey @ 2003-10-28 22:17 UTC (permalink / raw)
To: linux1394-devel, lkml; +Cc: torvalds
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.6.0-test9.orig/drivers/ieee1394/ohci1394.c linux-2.6.0-test9/drivers/ieee1394/ohci1394.c
--- linux-2.6.0-test9.orig/drivers/ieee1394/ohci1394.c 2003-10-25 19:44:35.000000000 +0100
+++ linux-2.6.0-test9/drivers/ieee1394/ohci1394.c 2003-10-28 21:59:01.964472056 +0000
@@ -500,6 +500,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);
@@ -611,6 +612,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));
+ }
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-28 22:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-28 22:17 [PATCH] 2.6.0-test9 ieee1394 on nforce2 Andrew de Quincey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).