Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 296439 Details for
Bug 312871
System exception when recovering from sleep [firewire_ohci]
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fw-ohci: PPC PMac platform code
653-firewire-fw-ohci-ppc-pmac-platform-code.patch (text/plain), 2.85 KB, created by
Stefan Richter
on 2008-03-01 01:55:19 UTC
(
hide
)
Description:
fw-ohci: PPC PMac platform code
Filename:
MIME Type:
Creator:
Stefan Richter
Created:
2008-03-01 01:55:19 UTC
Size:
2.85 KB
patch
obsolete
>Date: Sat, 1 Mar 2008 02:42:56 +0100 (CET) >From: Stefan Richter <stefanr@s5r6.in-berlin.de> >Subject: firewire: fw-ohci: PPC PMac platform code > >Copied from ohci1394.c. This code is necessary to prevent machine check >exceptions when reloading or resuming the driver. > >Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> >--- > drivers/firewire/fw-ohci.c | 50 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 50 insertions(+) > >Index: linux-2.6.25-rc3/drivers/firewire/fw-ohci.c >=================================================================== >--- linux-2.6.25-rc3.orig/drivers/firewire/fw-ohci.c >+++ linux-2.6.25-rc3/drivers/firewire/fw-ohci.c >@@ -33,6 +33,10 @@ > #include <asm/page.h> > #include <asm/system.h> > >+#ifdef CONFIG_PPC_PMAC >+#include <asm/pmac_feature.h> >+#endif >+ > #include "fw-ohci.h" > #include "fw-transaction.h" > >@@ -2057,6 +2061,18 @@ pci_probe(struct pci_dev *dev, const str > int err; > size_t size; > >+#ifdef CONFIG_PPC_PMAC >+ /* Necessary on some machines if fw-ohci was loaded/ unloaded before */ >+ if (machine_is(powermac)) { >+ struct device_node *ofn = pci_device_to_OF_node(dev); >+ >+ if (ofn) { >+ pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, ofn, 0, 1); >+ pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 1); >+ } >+ } >+#endif /* CONFIG_PPC_PMAC */ >+ > ohci = kzalloc(sizeof(*ohci), GFP_KERNEL); > if (ohci == NULL) { > fw_error("Could not malloc fw_ohci data.\n"); >@@ -2189,6 +2205,20 @@ static void pci_remove(struct pci_dev *d > pci_iounmap(dev, ohci->registers); > pci_release_region(dev, 0); > pci_disable_device(dev); >+ >+#ifdef CONFIG_PPC_PMAC >+ /* On UniNorth, power down the cable and turn off the chip clock >+ * to save power on laptops */ >+ if (machine_is(powermac)) { >+ struct device_node* ofn = pci_device_to_OF_node(dev); >+ >+ if (ofn) { >+ pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 0); >+ pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, ofn, 0, 0); >+ } >+ } >+#endif /* CONFIG_PPC_PMAC */ >+ > kfree(&ohci->card); > > fw_notify("Removed fw-ohci device.\n"); >@@ -2211,6 +2241,16 @@ static int pci_suspend(struct pci_dev *p > if (err) > fw_error("pci_set_power_state failed with %d\n", err); > >+/* PowerMac suspend code comes last */ >+#ifdef CONFIG_PPC_PMAC >+ if (machine_is(powermac)) { >+ struct device_node *ofn = pci_device_to_OF_node(pdev); >+ >+ if (ofn) >+ pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 0); >+ } >+#endif /* CONFIG_PPC_PMAC */ >+ > return 0; > } > >@@ -2219,6 +2259,16 @@ static int pci_resume(struct pci_dev *pd > struct fw_ohci *ohci = pci_get_drvdata(pdev); > int err; > >+/* PowerMac resume code comes first */ >+#ifdef CONFIG_PPC_PMAC >+ if (machine_is(powermac)) { >+ struct device_node *ofn = pci_device_to_OF_node(pdev); >+ >+ if (ofn) >+ pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 1); >+ } >+#endif /* CONFIG_PPC_PMAC */ >+ > pci_set_power_state(pdev, PCI_D0); > pci_restore_state(pdev); > err = pci_enable_device(pdev);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 312871
:
296318
| 296439