PCI: qcom: Fix a bitwise vs logical NOT typo
authorDan Carpenter <[email protected]>
Tue, 1 May 2018 07:22:50 +0000 (10:22 +0300)
committerLorenzo Pieralisi <[email protected]>
Wed, 16 May 2018 10:04:18 +0000 (11:04 +0100)
Fix a typo that accidentally sets "val" to zero when we intended just to
clear BIT(0).

Fixes: 90d52d57ccac ("PCI: qcom: Add support for IPQ4019 PCIe controller")
Signed-off-by: Dan Carpenter <[email protected]>
[[email protected]: updated commit log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Stanimir Varbanov <[email protected]>
Acked-by: John Crispin <[email protected]>
drivers/pci/dwc/pcie-qcom.c

index 5897af7d3355ac154dc6b2fe03fb9bc9fb4a6b4c..b65bbf7c284e2ef24915db9cb163ba1cf3797af2 100644 (file)
@@ -869,7 +869,7 @@ static int qcom_pcie_init_2_4_0(struct qcom_pcie *pcie)
 
        /* enable PCIe clocks and resets */
        val = readl(pcie->parf + PCIE20_PARF_PHY_CTRL);
-       val &= !BIT(0);
+       val &= ~BIT(0);
        writel(val, pcie->parf + PCIE20_PARF_PHY_CTRL);
 
        /* change DBI base address */