[PATCH] PCI: reverse pci config space restore order
authorYu, Luming <luming.yu@intel.com>
Tue, 25 Apr 2006 07:00:34 +0000 (00:00 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 11 Jun 2006 21:02:27 +0000 (14:02 -0700)
commit8b8c8d280ab2d18fe6e42d671f60d4ffed451cdc
tree83702395aa09b3a4497758e3cf0e5c52761c798a
parent04d9c1a1100b6bdeffa7e1bfc30080bdac28e183
[PATCH] PCI: reverse pci config space restore order

According to Intel ICH spec, there are several rules that Base Address
should be programmed before IOSE  (PCICMD register ) enabled.

For example ICH7:

12.1.3  SATA : the base address register for the bus master register
               should be programmed before this bit is set.

11.1.3:  PCICMD (USB): The base address register for USB should be
                       programmed before this bit is set.
....

To make sure kernel code follow this rule , and prevent unnecessary
confusion. I proposal this patch.

Signed-off-by: Luming Yu <luming.yu@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c