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)
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>

No differences found