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

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

Merge "coresight: fix etr pice mode issue"

parents 5b9483c7 5de46e81
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -674,7 +674,8 @@ static void etr_pcie_client_cb(struct mhi_dev_client_cb_data *cb_data)
	byte_cntr_data = cb_data->user_data;
	if (!byte_cntr_data)
		return;

	if (tmcdrvdata->pcie_path != TMC_ETR_PCIE_SW_PATH)
		return;
	switch (cb_data->ctrl_info) {
	case  MHI_STATE_CONNECTED:
		if (cb_data->channel == byte_cntr_data->pcie_out_chan) {
+0 −2
Original line number Diff line number Diff line
@@ -1706,8 +1706,6 @@ static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev)

	if (drvdata->out_mode == TMC_ETR_OUT_MODE_MEM)
		tmc_etr_byte_cntr_start(drvdata->byte_cntr);
	if (drvdata->out_mode == TMC_ETR_OUT_MODE_PCIE)
		etr_pcie_start(drvdata->byte_cntr);

	if (drvdata->out_mode == TMC_ETR_OUT_MODE_PCIE
			&& drvdata->pcie_path == TMC_ETR_PCIE_SW_PATH)