]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ba971996e82ea75403e335433ed09992a4397d1
tree4302c298abed38b0ff866a66390a7f434a612db0
parentbacb4711f5fff8be6df514b687ae48446b699cf1
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