From patchwork Fri Feb 5 10:43:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 376897 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2115987jah; Fri, 5 Feb 2021 02:49:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJx84IJRx6BrpHCCwQMk2gHRs9xz0XhYGQdQNUg2xx3GovjwSFStyDgILEHS+0OQFQUm400H X-Received: by 2002:a05:6402:61a:: with SMTP id n26mr2895556edv.51.1612522147947; Fri, 05 Feb 2021 02:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612522147; cv=none; d=google.com; s=arc-20160816; b=UvmAGDO3IHRUz1WPlMS724PV/l5/4iDSGM7wrj9Yn//tyjjS+ZTqmXz6I/dmO7h0Ys 5DiO2VKoBeOGDrUXbtdRKB3SD681X/lTNT6i0GuRMLBlCT+3E4QFx1WEVY3JFXxUP9+4 jHoZBIXPVqw1/FJShTXYJs6kwV7ETJUlGbOcXZCeP7Lz6v18L8kQqg9NSgR0ekC3q2U9 LvztzEyCzz2opDVyYMKi5cQhpZ9/eszEviDt7WTSXYMpZZEYJF0xuF7O5jHWfFlV4ROa G+cklVv/qejNIMGWr4F/IC8J1Fb7SIrDjZJr+SD4wBaV5+BKqPVLwJeEL+tIXhWRqF6+ oj9Q== 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=YKFr1OaX41tKIse84FOjUPRg1BE34jxdlTucijfIY9A=; b=RWUyVOof+6Ig9ZN/gYabIsQWYOrB90s694TLA+WaPJaRjbA//BlJyctu7A9M7P0m93 AbI0I3D7H6lIvez6WG7VdGemgWspd85uCMvNzmpR9hFHsMeRcYVp0g2KPrHkjx6nw1di v9wJ0strXsJOCoRIwjk4JjKudbGN1ImawshsqvXkYkGV3NzGKNiu1LAMKs/vWgTV6faC Up+K70I/1HV6qFJZNqnoZjFor7c0B2vxPrxs8eD29Cx8uL7lVrbYzZKybOIbrOKKRwww h6vqGK7TLXU6XfYzl6LiT4bI6T6SEWo9JMts69yzF3QR5eiZq9fMQdd7Ex/y/JWAw0rM s8rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZepuP1vJ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 f12si5019809ejx.333.2021.02.05.02.49.07; Fri, 05 Feb 2021 02:49:07 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=ZepuP1vJ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S231220AbhBEKsZ (ORCPT + 6 others); Fri, 5 Feb 2021 05:48:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbhBEKpv (ORCPT ); Fri, 5 Feb 2021 05:45:51 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAFF3C06121F for ; Fri, 5 Feb 2021 02:44:55 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id t142so3449748wmt.1 for ; Fri, 05 Feb 2021 02:44:55 -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=YKFr1OaX41tKIse84FOjUPRg1BE34jxdlTucijfIY9A=; b=ZepuP1vJJm3kKPUewIRk46pmuLELCyDb+Qh9AsLM6E5TR3XN4ukpfm1PWxj/2NhwJU X862Ccf7p9drsc7jDclJofPfFVKW7s5JVT8Up9PFCmmDX088CELK6Uhb4VGOoao9cQCq q7ZRgiNYUKbmZ68Y9OYRCDKBZARd5UYWMmA2/y6c+HAYz0isjUfNE1ApANz/8Mvz7Nl6 LIOO3ivKWpKQnuBCKrMePdV/TMfuNtyULlKJCXIBPJLqHdyI3qUfLQFrFMI5PPJqkCo+ 1991EE67qnEW/ClGxQgfURYK/ATpJW0+Sp2IG8yDGB1wVXyNri281n4QgofowG9Vy4lX ZsPw== 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=YKFr1OaX41tKIse84FOjUPRg1BE34jxdlTucijfIY9A=; b=fXZSjJoNjlsXQXOVNzRuUHkCCDl8SRTvHrEsDN7kCU9SgaDhyO6SmdNC6Xdj/TozvP 3URVDvliDQge610yi17xBxIWs3xdjZERsR70YsOQF2Vdzz+X0VYisOWjapHOICINQJ+y 9eGEqDhbMegUrAtRiOqO6s1b2YGIQp1wjsm57A1mUL4nW1Qq/Qxd7153fuGCGL/vpVM9 DBJDdfvoTp1nS+q+7bJSKNbwWcLSY27BkrRORh49IhoN1nlqItHLjBm8epifkfjlAn9/ 5TXNtiHIxQpisuCSL01QLxIymgbWqNW41Ak5+hkUPp2/nF7BiVRGi6njQp4IAxBxuePd hcww== X-Gm-Message-State: AOAM533gSHRq2HbBWb9mjypVZ1BfDtj8I2igbFuRfUQs2P20soRbjwWF C0IukUFOYDLERXdd7q7SmQ2sMw== X-Received: by 2002:a1c:6a09:: with SMTP id f9mr3026083wmc.104.1612521894738; Fri, 05 Feb 2021 02:44:54 -0800 (PST) Received: from localhost.localdomain ([2a02:2450:102f:d6a:38fd:e0db:ea01:afc8]) by smtp.gmail.com with ESMTPSA id u4sm11300233wrr.37.2021.02.05.02.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 02:44:54 -0800 (PST) From: Robert Foss To: robert.foss@linaro.org, todor.too@gmail.com, agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@somainline.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Rob Herring , Sakari Ailus , Nicolas Boichat , Andrey Konovalov Cc: Tomasz Figa , Azam Sadiq Pasha Kapatrala Syed , Sarvesh Sridutt , Laurent Pinchart , Jonathan Marek Subject: [PATCH v4 03/22] media: camss: Replace trace_printk() with dev_dbg() Date: Fri, 5 Feb 2021 11:43:55 +0100 Message-Id: <20210205104414.299732-4-robert.foss@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210205104414.299732-1-robert.foss@linaro.org> References: <20210205104414.299732-1-robert.foss@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- Changes since v3: - Nicolas: Create this patch 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 Reviewed-by: Nicolas Boichat 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);