From patchwork Thu Mar 4 12:03:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 392740 Delivered-To: patch@linaro.org Received: by 2002:a17:906:a383:0:0:0:0 with SMTP id k3csp6374854ejz; Thu, 4 Mar 2021 14:26:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9+CiSEz0tyM1Xd0F77hRxrLPPSy+iO5pdQoQBFFBmAqrdIEwLwO7/ug8cWvA/PmOKdckP X-Received: by 2002:a17:906:753:: with SMTP id z19mr6543336ejb.447.1614896814058; Thu, 04 Mar 2021 14:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614896814; cv=none; d=google.com; s=arc-20160816; b=hcZd7xMT2uqq2CnfNbF1BJYPVIyhXaCVkkvLxqf/RRmRw/cmm0MhJCtrxtszWVaWcr UA8RpLLY9xhpyACzM891uuOoCzQ80hEUYnw3e405CUfci/QVufpBqrUN4x8I+ocPzCdI dChI2lefh8QPHO0nVy6eX1lHcq3KcY3miephW4aQTvDF9hvdJyn+PL7ym03ywNNggTYc 2pjOw9z92JyRRMN+pq/0gThhLkxjJ1XVQkTrWT4JD8PyVR37BM+vbmIiSYqcme8HycB7 VqgaFz4O8iBUmJ/bsHDL7Zg1I8k/T5NsdBbOgxma+lCDTQdANkmWciZoC+A0xeClPk86 0o6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8e4PPUtgYSubDxzdU/QA0Sb+7wTbzZIX4nY3IAQXL6o=; b=tlJDfcLy5qBjMCUbm36/JXqLZufa2dnJU9FRP9KtqIO3XlSPGLgllJGx+g+5+7p2z6 jzhZhQO7/eZrBhPPrjSxtlgAiRWhugT85Dwf8aeoHlnJ24t3W0ksMyLZQkB9qurlilF+ RFEX6Xju2bikWMWWDiz0Kdpp5PAgzc062s3hXenBxCP0v0jdYn3SqLYDlEenog6LZJii kqDCvEEwGSz+txOCOour0dXEGi4wMur3L7w/7MO3oTNNbnwRp8JN68Zv7gCgQLOxFMkj v82hXFY/r+kHeVuUU3kxLOV9EvBcCZ2Y1Zj/nuCyi2OkOtUigNUOoA2/lJYHOaN0Q9yO 10vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b+Ik4tSI; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si527757edj.545.2021.03.04.14.26.53; Thu, 04 Mar 2021 14:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b+Ik4tSI; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239918AbhCDMGn (ORCPT + 16 others); Thu, 4 Mar 2021 07:06:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239908AbhCDMGR (ORCPT ); Thu, 4 Mar 2021 07:06:17 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F52EC061762 for ; Thu, 4 Mar 2021 04:05:37 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id r17so48830035ejy.13 for ; Thu, 04 Mar 2021 04:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8e4PPUtgYSubDxzdU/QA0Sb+7wTbzZIX4nY3IAQXL6o=; b=b+Ik4tSIdjjXFBDtJHdZpZjpYoZ75tILu50BS8TA13Den5QErSSbkPLXicOXsy6eih RoMcqWIqL0nh29j7JabpIXN3ONuYOygfLbW8IqDq4SRoAoB01/s36k6Z9ZQMbf9K7I7N J2v5tYtMz0FSFMN+22bmg9tdLkYhWAl6ck+bK5xVMAp/63Z1yUDOqqaiwk3rGXdq99TO 2cOSY3a3L/W6u+yzsZmANmLSdvrDbLS1YU1DFtInVGgar8Cjb37rgDz0BDgsGcu9hVIj pET/3kqH2BlyrxA2bwGIhx18b461pbXrjM9ax3UWR0jkTqPugTYYbPvuTJqrE7TIBPI7 JHzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8e4PPUtgYSubDxzdU/QA0Sb+7wTbzZIX4nY3IAQXL6o=; b=ri/1LTkCvlJEsv0jLsWJ3QWUMQsYrv8SFPUvPqw6ICIrW+CgxXw2E90byvPGal7Eto S8eqCnnHJXySRbOrZbWPeqO89lfS4P6NHD+2D3WTjBc5Yc1q4whT1DB7pAr7NH2Yey4q nkxW02DGAI6ciFbuygZW4b3UkgeYEkDapYxpXmkmX6KadnyaD4U7IAyhWCUlVY6xDOo6 ZASc7oLnCTadFUTM3yMOPA/H1LcuJVEjVRnbiST4/ECinBEvqERhjkufbICtoADxWfNq 9QSvp1CKE0P6ehXsKpEjZgFb2BLjjPpCNEC7sTsfPWOW9imDS8xAVQKGE/hMh0tq+ppr BYwA== X-Gm-Message-State: AOAM531VdBYMpCZe80PH5qRSIraXIz5n7fmZwF5DP9yIbQoOPnwl0cXk 3yUaoInGrjyx4K8WYjNsBynZug== X-Received: by 2002:a17:906:d71:: with SMTP id s17mr3980257ejh.126.1614859536097; Thu, 04 Mar 2021 04:05:36 -0800 (PST) Received: from localhost.localdomain ([2a02:2450:102f:d6a:470a:340b:1b:29dd]) by smtp.gmail.com with ESMTPSA id cf6sm20464447edb.92.2021.03.04.04.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 04:05:35 -0800 (PST) From: Robert Foss To: agross@kernel.org, bjorn.andersson@linaro.org, robert.foss@linaro.org, todor.too@gmail.com, mchehab@kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@somainline.org, linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Sakari Ailus , Andrey Konovalov Cc: Rob Herring , Tomasz Figa , Azam Sadiq Pasha Kapatrala Syed , Sarvesh Sridutt , Laurent Pinchart , Jonathan Marek , Nicolas Boichat Subject: [PATCH v6 03/22] media: camss: Replace trace_printk() with dev_dbg() Date: Thu, 4 Mar 2021 13:03:09 +0100 Message-Id: <20210304120326.153966-4-robert.foss@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210304120326.153966-1-robert.foss@linaro.org> References: <20210304120326.153966-1-robert.foss@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org trace_printk() should not be used in production code, since extra memory is used for special buffers whenever trace_puts() is used. Replace it with dev_dbg() which provides all of the desired debugging functionality. Signed-off-by: Robert Foss Suggested-by: Nicolas Boichat Reviewed-by: Nicolas Boichat --- Changes since v3: - Nicolas: Create this patch Changes since v4: - Nicolas: Add r-b drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 5 +++-- drivers/media/platform/qcom/camss/camss-vfe-4-7.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) -- 2.27.0 diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c index a1b56b89130d..85b9bcbc7321 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c @@ -12,6 +12,7 @@ #include #include +#include "camss.h" #include "camss-vfe.h" #define VFE_0_HW_VERSION 0x000 @@ -936,8 +937,8 @@ static irqreturn_t vfe_isr(int irq, void *dev) vfe->ops->isr_read(vfe, &value0, &value1); - trace_printk("VFE: status0 = 0x%08x, status1 = 0x%08x\n", - value0, value1); + dev_dbg(vfe->camss->dev, "VFE: status0 = 0x%08x, status1 = 0x%08x\n", + value0, value1); if (value0 & VFE_0_IRQ_STATUS_0_RESET_ACK) vfe->isr_ops.reset_ack(vfe); diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c index 84c33b8f9fe3..f7e00a2de393 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c @@ -12,6 +12,7 @@ #include #include +#include "camss.h" #include "camss-vfe.h" #define VFE_0_HW_VERSION 0x000 @@ -1069,8 +1070,8 @@ static irqreturn_t vfe_isr(int irq, void *dev) vfe->ops->isr_read(vfe, &value0, &value1); - trace_printk("VFE: status0 = 0x%08x, status1 = 0x%08x\n", - value0, value1); + dev_dbg(vfe->camss->dev, "VFE: status0 = 0x%08x, status1 = 0x%08x\n", + value0, value1); if (value0 & VFE_0_IRQ_STATUS_0_RESET_ACK) vfe->isr_ops.reset_ack(vfe);