firewire: Fix pci resume to not pass in a __be32 config rom.
authorKristian Høgsberg <krh@redhat.com>
Tue, 5 Jun 2007 23:27:05 +0000 (19:27 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 31 Oct 2007 18:02:19 +0000 (19:02 +0100)
commit0bd243c4d93583cd8e1786c0bd6982f6f9f94ab6
tree4302c298abed38b0ff866a66390a7f434a612db0
parent5307cc1aa53850f017c8053db034cf950b670ac9
firewire: Fix pci resume to not pass in a __be32 config rom.

The ohci_enable() function shared between pci_probe and pci_resume
takes a host endian config rom, but ohci->config_rom is __be32.  This
sets up the config rom in the wrong endian on little endian machine,
specifically, BusOptions will be initialized to a 0 max receive size.

This patch changes the way we reuse the config rom so that we avoid
this problem.

Signed-off-by: Kristian Hoegsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-ohci.c