Revision ea8d006b91ac58ec5a0862d09e0b629db399517f authored by Stefan Richter on 01 March 2008, 01:42:56 UTC, committed by Stefan Richter on 13 March 2008, 23:56:58 UTC
Copied from ohci1394.c.  This code is necessary to prevent machine check
exceptions when reloading or resuming the driver.

Tested on a 1st generation PowerBook G4 Titanium, which also needs the
pci_probe() hunk.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

I was able to reproduce the system exception on resume with a 3rd-gen
Titanium PowerBook G4 667, and this patch does let the system resume
successfully now.

Not quite clear if there was possibly an updated version coming using
pci_enable_device() instead of the pair of pmac_call_feature() calls,
but either way, this is a definite must-have, at least for older ppc
macs -- my Aluminum PowerBook G4/1.67 suspends and resumes without this
patch just fine.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent efbf390
History
File Mode Size
Makefile -rw-r--r-- 318 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 4.1 KB
mqueue.c -rw-r--r-- 29.8 KB
msg.c -rw-r--r-- 20.8 KB
msgutil.c -rw-r--r-- 2.3 KB
namespace.c -rw-r--r-- 1.7 KB
sem.c -rw-r--r-- 33.7 KB
shm.c -rw-r--r-- 27.1 KB
util.c -rw-r--r-- 21.1 KB
util.h -rw-r--r-- 4.5 KB

back to top