Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 074df251 authored by Dan Carpenter's avatar Dan Carpenter Committed by Lorenzo Pieralisi
Browse files

PCI: qcom: Fix a bitwise vs logical NOT typo



Fix a typo that accidentally sets "val" to zero when we intended just to
clear BIT(0).

Fixes: 90d52d57 ("PCI: qcom: Add support for IPQ4019 PCIe controller")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: default avatarStanimir Varbanov <svarbanov@mm-sol.com>
Acked-by: default avatarJohn Crispin <john@phrozen.org>
parent 011cb23c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -869,7 +869,7 @@ static int qcom_pcie_init_2_4_0(struct qcom_pcie *pcie)


	/* enable PCIe clocks and resets */
	/* enable PCIe clocks and resets */
	val = readl(pcie->parf + PCIE20_PARF_PHY_CTRL);
	val = readl(pcie->parf + PCIE20_PARF_PHY_CTRL);
	val &= !BIT(0);
	val &= ~BIT(0);
	writel(val, pcie->parf + PCIE20_PARF_PHY_CTRL);
	writel(val, pcie->parf + PCIE20_PARF_PHY_CTRL);


	/* change DBI base address */
	/* change DBI base address */