summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-11-06 00:52:08 +0100
committerJeff Garzik <jeff@garzik.org>2007-11-10 10:25:08 +0100
commitac93a3946b676025fa55356180e8321639744b31 (patch)
tree12a338e86ea77fc9cbddbfeaaf58ea81bfd2dec8 /drivers/net/sky2.c
parent[FUTEX] Fix address computation in compat code. (diff)
downloadlinux-ac93a3946b676025fa55356180e8321639744b31.tar.xz
linux-ac93a3946b676025fa55356180e8321639744b31.zip
sky2: enable PCI config writes
On some boards, PCI configuration space access is turned off by default. The 2.6.24 driver doesn't turn it on, and should have. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r--drivers/net/sky2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index c27c7d63b6a5..4f41a9445961 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -2791,6 +2791,9 @@ static void sky2_reset(struct sky2_hw *hw)
sky2_write8(hw, B0_CTST, CS_RST_SET);
sky2_write8(hw, B0_CTST, CS_RST_CLR);
+ /* allow writes to PCI config */
+ sky2_write8(hw, B2_TST_CTRL1, TST_CFG_WRITE_ON);
+
/* clear PCI errors, if any */
pci_read_config_word(pdev, PCI_STATUS, &status);
status |= PCI_STATUS_ERROR_BITS;