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

Commit aeffceb7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: Add config to disable time sync feature"

parents d8a0d0db 027d7b5d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -707,6 +707,8 @@ static int cnss_show_quirks_state(struct seq_file *s,
			continue;
		case IGNORE_PCI_LINK_FAILURE:
			seq_puts(s, "IGNORE_PCI_LINK_FAILURE");
		case DISABLE_TIME_SYNC:
			seq_puts(s, "DISABLE_TIME_SYNC");
			continue;
		}

+1 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ enum cnss_debug_quirks {
	DISABLE_DRV,
	DISABLE_IO_COHERENCY,
	IGNORE_PCI_LINK_FAILURE,
	DISABLE_TIME_SYNC,
};

enum cnss_bdf_type {
+10 −0
Original line number Diff line number Diff line
@@ -1711,6 +1711,16 @@ static void cnss_pci_time_sync_work_hdlr(struct work_struct *work)
	unsigned int time_sync_period_ms =
		plat_priv->ctrl_params.time_sync_period;

	if (test_bit(DISABLE_TIME_SYNC, &plat_priv->ctrl_params.quirks)) {
		cnss_pr_dbg("Time sync is disabled\n");
		return;
	}

	if (!time_sync_period_ms) {
		cnss_pr_dbg("Skip time sync as time period is 0\n");
		return;
	}

	if (cnss_pci_is_device_down(&pci_priv->pci_dev->dev))
		return;