]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PCI: don't corrupt enable_cnt when doing manual resource alignment
authorYuji Shimada <shimada-yxb@necst.nec.co.jp>
Mon, 6 Apr 2009 01:24:21 +0000 (10:24 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 6 Apr 2009 18:27:58 +0000 (11:27 -0700)
commit0cdbe30f0b04466a1fee11b81b3667bd1b982549
tree8efc02bd7f6fe405471eb343d936d384727cfea1
parent5446a6bdb51e71da7a203e395b0b4c668d559a3a
PCI: don't corrupt enable_cnt when doing manual resource alignment

This patch fixes breakage of of enable_cnt in quirk_resource_alignment.

Currently, quirk_resource_alignment calls pci_disable_device.
pci_disable_device decrements enable_cnt, so that enable_cnt becomes -1.

The patch disables memory decoding, writing command register directly.
So enable_cnt is not broken.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/quirks.c