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

Commit a956413b authored by Krishnankutty Kolathappilly's avatar Krishnankutty Kolathappilly Committed by Gerrit - the friendly Code Review server
Browse files

msm: cpp: Remove informational prints from the driver



Change pr_info debug messages to pr_debug to keep driver silent
during normal operations. Change pr_info to pr_warning for cpp
firmware timeout error scenarios.

CRs-Fixed: 863249
Change-Id: Iebb1bb9ff3f7e1f653826ea6238eab9cf74f098b
Signed-off-by: default avatarKrishnankutty Kolathappilly <kkolatha@codeaurora.org>
parent c952020e
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ static void msm_enqueue(struct msm_device_queue *queue,
	queue->len++;
	if (queue->len > queue->max) {
		queue->max = queue->len;
		pr_info("queue %s new max is %d\n", queue->name, queue->max);
		pr_debug("queue %s new max is %d\n", queue->name, queue->max);
	}
	list_add_tail(entry, &queue->list);
	wake_up(&queue->wait);
@@ -622,7 +622,7 @@ static void msm_cpp_delete_buff_queue(struct cpp_device *cpp_dev)

	for (i = 0; i < cpp_dev->num_buffq; i++) {
		if (cpp_dev->buff_queue[i].used == 1) {
			pr_info("Queue not free sessionid: %d, streamid: %d\n",
			pr_warn("Queue not free sessionid: %d, streamid: %d\n",
				cpp_dev->buff_queue[i].session_id,
				cpp_dev->buff_queue[i].stream_id);
			msm_cpp_dequeue_buff_info_list
@@ -1215,7 +1215,7 @@ static void cpp_release_hardware(struct cpp_device *cpp_dev)
	regulator_put(cpp_dev->fs_mmagic_camss);
	cpp_dev->fs_mmagic_camss = NULL;
	if (cpp_dev->stream_cnt > 0) {
		pr_info("stream count active\n");
		pr_warn("stream count active\n");
		rc = msm_cpp_update_bandwidth_setting(cpp_dev, 0, 0);
	}
	cpp_dev->stream_cnt = 0;
@@ -1611,7 +1611,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
	struct msm_cpp_frame_info_t *processed_frame[MAX_CPP_PROCESSING_FRAME];
	struct cpp_device *cpp_dev = cpp_timer.data.cpp_dev;

	pr_info("cpp_timer_callback called. (jiffies=%lu)\n",
	pr_warn("cpp_timer_callback called. (jiffies=%lu)\n",
		jiffies);
	mutex_lock(&cpp_dev->mutex);

@@ -1621,15 +1621,15 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
		goto end;
	}
	if (!atomic_read(&cpp_timer.used)) {
		pr_info("Delayed trigger, IRQ serviced\n");
		pr_warn("Delayed trigger, IRQ serviced\n");
		goto end;
	}

	disable_irq(cpp_timer.data.cpp_dev->irq->start);
	pr_info("Reloading firmware\n");
	pr_debug("Reloading firmware\n");
	cpp_load_fw(cpp_timer.data.cpp_dev,
		cpp_timer.data.cpp_dev->fw_name_bin);
	pr_info("Firmware loading done\n");
	pr_warn("Firmware loading done\n");
	enable_irq(cpp_timer.data.cpp_dev->irq->start);
	msm_camera_io_w_mb(0x8, cpp_timer.data.cpp_dev->base +
		MSM_CPP_MICRO_IRQGEN_MASK);
@@ -1638,7 +1638,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
		MSM_CPP_MICRO_IRQGEN_CLR);

	if (!atomic_read(&cpp_timer.used)) {
		pr_info("Delayed trigger, IRQ serviced\n");
		pr_warn("Delayed trigger, IRQ serviced\n");
		goto end;
	}

@@ -1647,7 +1647,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)

	if (cpp_dev->timeout_trial_cnt >=
		cpp_dev->max_timeout_trial_cnt) {
		pr_info("Max trial reached\n");
		pr_warn("Max trial reached\n");
		while (queue_len) {
			msm_cpp_notify_frame_done(cpp_dev, 1);
			queue_len--;
@@ -1660,7 +1660,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
	}

	atomic_set(&cpp_timer.used, 1);
	pr_info("Starting timer to fire in %d ms. (jiffies=%lu)\n",
	pr_debug("Starting timer to fire in %d ms. (jiffies=%lu)\n",
		CPP_CMD_TIMEOUT_MS, jiffies);
	mod_timer(&cpp_timer.cpp_timer,
		jiffies + msecs_to_jiffies(CPP_CMD_TIMEOUT_MS));
@@ -1669,7 +1669,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
		processed_frame[i] = cpp_timer.data.processed_frame[i];

	for (i = 0; i < queue_len; i++) {
		pr_info("Rescheduling for identity=0x%x, frame_id=%03d\n",
		pr_warn("Rescheduling for identity=0x%x, frame_id=%03d\n",
			processed_frame[i]->identity,
			processed_frame[i]->frame_id);

@@ -1696,7 +1696,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
		}
		/* send trailer */
		msm_cpp_write(0xabcdefaa, cpp_dev->base);
		pr_info("After frame:%d write\n", i+1);
		pr_debug("After frame:%d write\n", i+1);
	}

	cpp_timer.data.cpp_dev->timeout_trial_cnt++;
@@ -1704,7 +1704,7 @@ static void msm_cpp_do_timeout_work(struct work_struct *work)
end:
	mutex_unlock(&cpp_dev->mutex);

	pr_info("exit\n");
	pr_debug("exit\n");
	return;
}

@@ -2179,7 +2179,7 @@ static int msm_cpp_cfg_frame(struct cpp_device *cpp_dev,
	}

	if (cpp_dev->iommu_state != CPP_IOMMU_STATE_ATTACHED) {
		pr_info("IOMMU is not attached\n");
		pr_err("IOMMU is not attached\n");
		return -EAGAIN;
	}

@@ -2409,7 +2409,7 @@ void msm_cpp_clean_queue(struct cpp_device *cpp_dev)
	struct msm_device_queue *queue = NULL;

	while (cpp_dev->processing_q.len) {
		pr_info("queue len:%d\n", cpp_dev->processing_q.len);
		pr_debug("queue len:%d\n", cpp_dev->processing_q.len);
		queue = &cpp_dev->processing_q;
		frame_qcmd = msm_dequeue(queue, list_frame);
		if (frame_qcmd) {
@@ -2743,7 +2743,7 @@ STREAM_BUFF_END:
			buff_queue_info->stream_id);
		if (cpp_dev->stream_cnt > 0) {
			cpp_dev->stream_cnt--;
			pr_info("stream_cnt:%d\n", cpp_dev->stream_cnt);
			pr_debug("stream_cnt:%d\n", cpp_dev->stream_cnt);
			if (cpp_dev->stream_cnt == 0) {
				rc = msm_cpp_update_bandwidth_setting(cpp_dev,
					0, 0);
@@ -2849,11 +2849,11 @@ STREAM_BUFF_END:
	case MSM_SD_SHUTDOWN:
		CPP_DBG("MSM_SD_SHUTDOWN\n");
		mutex_unlock(&cpp_dev->mutex);
		pr_info("shutdown cpp node. open cnt:%d\n",
		pr_warn("shutdown cpp node. open cnt:%d\n",
			cpp_dev->cpp_open_cnt);

		if (atomic_read(&cpp_timer.used))
			pr_info("Timer state not cleared\n");
			pr_debug("Timer state not cleared\n");

		while (cpp_dev->cpp_open_cnt != 0)
			cpp_close_node(sd, NULL);