From 568ab1d0980bdbb37eec0dee0d76ba8987f80fb8 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Mon, 26 Oct 2015 11:21:58 +0100 Subject: [PATCH] bcwc_pcie: set 0x200 in pci register 0x94 --- isp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/isp.c b/isp.c index 972f00b..7101384 100644 --- a/isp.c +++ b/isp.c @@ -193,12 +193,12 @@ int isp_init(struct bcwc_private *dev_priv) isp_acpi_set_power(dev_priv, 1); mdelay(20); - /* OSX driver configures the PCI bus here but we ignore it */ - pci_set_power_state(dev_priv->pdev, PCI_D0); + mdelay(10); + + pci_write_config_dword(dev_priv->pdev, 0x94, 0x200); isp_enable_sensor(dev_priv); - BCWC_ISP_REG_WRITE(0, ISP_IPC_NUM_CHAN); BCWC_ISP_REG_WRITE(0, ISP_IPC_QUEUE_SIZE); BCWC_ISP_REG_WRITE(0, ISP_FW_SIZE);