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

Commit 7dc5b097 authored by Yue Ma's avatar Yue Ma Committed by Gerrit - the friendly Code Review server
Browse files

cnss2: Add debug print for time sync registers



After updating time sync registers, read them back and add
debug print in order to make sure they are updated correctly.

Change-Id: If42501e579c3a6db0583a927ccb8782727dea418
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent ae3eed2b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -562,6 +562,13 @@ static int cnss_pci_update_timestamp(struct cnss_pci_data *pci_priv)
	cnss_pci_reg_write(pci_priv, QCA6390_PCIE_SHADOW_REG_VALUE_34, low);
	cnss_pci_reg_write(pci_priv, QCA6390_PCIE_SHADOW_REG_VALUE_35, high);

	cnss_pci_reg_read(pci_priv, QCA6390_PCIE_SHADOW_REG_VALUE_34, &low);
	cnss_pci_reg_read(pci_priv, QCA6390_PCIE_SHADOW_REG_VALUE_35, &high);

	cnss_pr_dbg("Updated time sync regs [0x%x] = 0x%x, [0x%x] = 0x%x\n",
		    QCA6390_PCIE_SHADOW_REG_VALUE_34, low,
		    QCA6390_PCIE_SHADOW_REG_VALUE_35, high);

force_wake_put:
	cnss_pci_force_wake_put(pci_priv);