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

Commit c31cc951 authored by Vaibhav Deshu Venkatesh's avatar Vaibhav Deshu Venkatesh
Browse files

msm: vidc: Remove prints while handling interrupts



We have a lot of unnecessary prints while handling
interrupts. Remove the ones which are not needed.

CRs-Fixed: 2234389
Change-Id: I3605f13c0370da27913144611c8b95fe084144b1
Signed-off-by: default avatarVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>
parent 7cef4908
Loading
Loading
Loading
Loading
+5 −10
Original line number Original line Diff line number Diff line
@@ -2040,7 +2040,7 @@ static int __get_q_size(struct venus_hfi_device *dev, unsigned int q_index)


static void __core_clear_interrupt(struct venus_hfi_device *device)
static void __core_clear_interrupt(struct venus_hfi_device *device)
{
{
	u32 intr_status = 0;
	u32 intr_status = 0, mask = 0;


	if (!device) {
	if (!device) {
		dprintk(VIDC_ERR, "%s: NULL device\n", __func__);
		dprintk(VIDC_ERR, "%s: NULL device\n", __func__);
@@ -2048,10 +2048,11 @@ static void __core_clear_interrupt(struct venus_hfi_device *device)
	}
	}


	intr_status = __read_register(device, VIDC_WRAPPER_INTR_STATUS);
	intr_status = __read_register(device, VIDC_WRAPPER_INTR_STATUS);
	mask = (VIDC_WRAPPER_INTR_STATUS_A2H_BMSK |
		VIDC_WRAPPER_INTR_STATUS_A2HWD_BMSK |
		VIDC_CTRL_INIT_IDLE_MSG_BMSK);


	if (intr_status & VIDC_WRAPPER_INTR_STATUS_A2H_BMSK ||
	if (intr_status & mask) {
		intr_status & VIDC_WRAPPER_INTR_STATUS_A2HWD_BMSK ||
		intr_status & VIDC_CTRL_INIT_IDLE_MSG_BMSK) {
		device->intr_status |= intr_status;
		device->intr_status |= intr_status;
		device->reg_count++;
		device->reg_count++;
		dprintk(VIDC_DBG,
		dprintk(VIDC_DBG,
@@ -2059,9 +2060,6 @@ static void __core_clear_interrupt(struct venus_hfi_device *device)
			device, device->reg_count, intr_status);
			device, device->reg_count, intr_status);
	} else {
	} else {
		device->spur_count++;
		device->spur_count++;
		dprintk(VIDC_INFO,
			"SPURIOUS_INTR for device: %pK: times: %d interrupt_status: %d\n",
			device, device->spur_count, intr_status);
	}
	}


	__write_register(device, VIDC_CPU_CS_A2HSOFTINTCLR, 1);
	__write_register(device, VIDC_CPU_CS_A2HSOFTINTCLR, 1);
@@ -3392,7 +3390,6 @@ static void venus_hfi_core_work_handler(struct work_struct *work)


	mutex_lock(&device->lock);
	mutex_lock(&device->lock);


	dprintk(VIDC_DBG, "Handling interrupt\n");


	if (!__core_in_valid_state(device)) {
	if (!__core_in_valid_state(device)) {
		dprintk(VIDC_DBG, "%s - Core not in init state\n", __func__);
		dprintk(VIDC_DBG, "%s - Core not in init state\n", __func__);
@@ -3437,7 +3434,6 @@ static void venus_hfi_core_work_handler(struct work_struct *work)
	if (!(intr_status & VIDC_WRAPPER_INTR_STATUS_A2HWD_BMSK))
	if (!(intr_status & VIDC_WRAPPER_INTR_STATUS_A2HWD_BMSK))
		enable_irq(device->hal_data->irq);
		enable_irq(device->hal_data->irq);


	dprintk(VIDC_DBG, "Handling interrupt done\n");
	/*
	/*
	 * XXX: Don't add any code beyond here.  Reacquiring locks after release
	 * XXX: Don't add any code beyond here.  Reacquiring locks after release
	 * it above doesn't guarantee the atomicity that we're aiming for.
	 * it above doesn't guarantee the atomicity that we're aiming for.
@@ -3450,7 +3446,6 @@ static irqreturn_t venus_hfi_isr(int irq, void *dev)
{
{
	struct venus_hfi_device *device = dev;
	struct venus_hfi_device *device = dev;


	dprintk(VIDC_INFO, "Received an interrupt %d\n", irq);
	disable_irq_nosync(irq);
	disable_irq_nosync(irq);
	queue_work(device->vidc_workq, &venus_hfi_work);
	queue_work(device->vidc_workq, &venus_hfi_work);
	return IRQ_HANDLED;
	return IRQ_HANDLED;