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

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

Merge "byte-cntr: Don't write csr register when byte-cntr is disabled"

parents 459d6fa3 81d63049
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@ static int tmc_etr_byte_cntr_release(struct inode *in, struct file *fp)
	mutex_lock(&byte_cntr_data->byte_cntr_lock);
	byte_cntr_data->read_active = false;

	if (byte_cntr_data->enable)
		coresight_csr_set_byte_cntr(byte_cntr_data->csr, 0);
	mutex_unlock(&byte_cntr_data->byte_cntr_lock);