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

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

Merge "coresight-byte-cntr: Fix the Byte-Counter read operation"

parents b5f80c8c 2881fd89
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ static ssize_t tmc_etr_byte_cntr_read(struct file *fp, char __user *data,
				goto err0;
		}

		if (tmcdrvdata->mem_type == TMC_ETR_MEM_TYPE_CONTIG)
		if (tmcdrvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG)
			tmc_etr_read_bytes(byte_cntr_data, ppos,
					   byte_cntr_data->block_size, &len,
					   &bufp);
@@ -173,7 +173,7 @@ static ssize_t tmc_etr_byte_cntr_read(struct file *fp, char __user *data,

	} else {
		if (!atomic_read(&byte_cntr_data->irq_cnt)) {
			if (tmcdrvdata->mem_type == TMC_ETR_MEM_TYPE_CONTIG)
			if (tmcdrvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG)
				tmc_etr_flush_bytes(ppos,
						    byte_cntr_data->block_size,
						    &len);
@@ -185,7 +185,7 @@ static ssize_t tmc_etr_byte_cntr_read(struct file *fp, char __user *data,
			if (!len)
				goto err0;
		} else {
			if (tmcdrvdata->mem_type == TMC_ETR_MEM_TYPE_CONTIG)
			if (tmcdrvdata->memtype == TMC_ETR_MEM_TYPE_CONTIG)
				tmc_etr_read_bytes(byte_cntr_data, ppos,
						   byte_cntr_data->block_size,
						   &len, &bufp);