Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp309030ybt; Thu, 9 Jul 2020 23:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDT5TYupffPlc9IJKy0Tzuk3MedQCUJMmYDDfkHT4rN1bCWHanlJU1JPvYqIL9S27pE290 X-Received: by 2002:a05:6402:31ad:: with SMTP id dj13mr33108219edb.88.1594363838171; Thu, 09 Jul 2020 23:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594363838; cv=none; d=google.com; s=arc-20160816; b=wsbJHG848m2Gh47mc5+lpvt2sf4qEF4KO2v63jZeIWodAy7RXAbKxphtXUsnBM+ems KABZUYWe/fY8rVMFiC2SWu03OZfFuLQhOkR5hDnZA2PaoYvyBYOBFMXgx8rkPB6PpMi9 BUVmV9XAvMNXSTQcfX57S7Ueo+6Z89bv5n+iHLvKf+6B6dI8ZIcfUWXKM5us1w5CE0xT PBU/jN3dFpCY9BIHaiaGqCYYh2W+KyK3LD8OVmCS6yB+n4Ba0lPe5+mIWOIMf9yQLOBf wRMx084kjSKZuGZoHbg1yX0FNpQLVByMUdf23hRZNGelu+5ngNoJ+cDATRG1+UOlk2ny e2ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gSZJQMAGEnmb2CqHFz1MNS8tMejxPEXsK0YNj8SWBOU=; b=J9UQbUoRUuuFlZIFHWVFGGQSurmUoNuTr97ye+CbfITxGX5KwLfrv6gnpoT+eWcHQi Y2YIWGpNiq79Tf+JHjJG7ls8+Xuxc9o6Z4CAxb4t1JCtISKlhNx09vzUq/v5jyIi/41j mOVRWap4EA1+rJcGZmnDJlJ80ARmnduP/vnKYJpdOI+IdQkbMazgqfovO8782+60A2ep ++f+U1+A2ZVhMZxWVX3EZP/NHbnR06GCevDC4esB486Qm+AChW9nJ47L+NIyor7UY1u2 UrdqH+IHssSY0D+Bq2mM/EIDNClzHwgugJp2hvN/a4lxpId4rAwifGqjNi2xSQt29EEj SAAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iRwK09LZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si3286114ejp.499.2020.07.09.23.50.15; Thu, 09 Jul 2020 23:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=iRwK09LZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbgGJGsE (ORCPT + 99 others); Fri, 10 Jul 2020 02:48:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgGJGsD (ORCPT ); Fri, 10 Jul 2020 02:48:03 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 334BDC08C5DC for ; Thu, 9 Jul 2020 23:48:03 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id d194so2078883pga.13 for ; Thu, 09 Jul 2020 23:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gSZJQMAGEnmb2CqHFz1MNS8tMejxPEXsK0YNj8SWBOU=; b=iRwK09LZ3BJmibGsyHoCPM9GNX9trLKrPSXtExFzQHWVgWOR89O1D/k+PuICQMvp0k 8uI373R2c7W9fJJzkJkk6O7AAPxjodaRHJ1NFg3f71hMp4vWwopxlU8XspS9hh2O5GS/ bBX7mQl430mHjYbVQaIpKkORhNrosYA0kCQXE= 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:mime-version :content-transfer-encoding; bh=gSZJQMAGEnmb2CqHFz1MNS8tMejxPEXsK0YNj8SWBOU=; b=sW7wNQk9S/PgViMH6d3xic3t4flrjRlNMeoJ9XjDn6jKQlGatznd4f+I93Hv9QhnLB XV2rgC6SK3VUg6j/V5TN5Gt4KCzaLIsH26DJ/+RXAVotOld8TH2UUDwi1/NhHMIKB7Jz NBvc5pAyNfag0G6AbRyqAq6zia862jEOMmkMRgw59pPVjn2GzkbfMRAJcRazokjxuzZg c5Q2wfOiqcgyNTvzoUwnEOAWJJpf4Mwooh5w6HYd0kJQ3PwK+WyER1eHhG8yE547K2AL cf14wVQ2/iaEC0PD0QaJyD8Qxb47Z8zDa7fSld2RTy9h27BnE3ji2g5AayhV2sm66m2s uBKw== X-Gm-Message-State: AOAM5301hnztgxzId1jPoUwHViP5FGeVenMzZFam3W3iC9WfweqY4WZL cX7jAgomd+LHyUZzT40qELQjEQ== X-Received: by 2002:a63:4f4d:: with SMTP id p13mr53250980pgl.400.1594363682668; Thu, 09 Jul 2020 23:48:02 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:7220:84ff:fe09:41dc]) by smtp.gmail.com with ESMTPSA id 190sm4639423pfz.41.2020.07.09.23.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 23:48:02 -0700 (PDT) From: Nicolas Boichat To: Andy Gross Cc: Nicolas Boichat , Bjorn Andersson , Mauro Carvalho Chehab , Todor Tomov , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [RESEND PATCH] media: camss: vfe: Use trace_printk for debugging only Date: Fri, 10 Jul 2020 14:47:51 +0800 Message-Id: <20200710144747.RESEND.1.Ifae7abaacb81af1cdc6475986cc788d71de8a13c@changeid> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org trace_printk should not be used in production code. Since tracing interrupts is presumably latency sensitive, pr_dbg is not appropriate, so guard the call with a preprocessor symbol that can be defined for debugging purpose. Signed-off-by: Nicolas Boichat --- Sent this before as part of a series (whose 4th patch was a change that allows to detect such trace_printk), but maybe it's easier to get individual maintainer attention by splitting it. drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 2 ++ drivers/media/platform/qcom/camss/camss-vfe-4-7.c | 2 ++ 2 files changed, 4 insertions(+) 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 174a36be6f5d866..0c57171fae4f9e9 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-4-1.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-1.c @@ -936,8 +936,10 @@ static irqreturn_t vfe_isr(int irq, void *dev) vfe->ops->isr_read(vfe, &value0, &value1); +#ifdef CAMSS_VFE_TRACE_IRQ trace_printk("VFE: status0 = 0x%08x, status1 = 0x%08x\n", value0, value1); +#endif 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 0dca8bf9281e774..307675925e5c779 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-4-7.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-7.c @@ -1058,8 +1058,10 @@ static irqreturn_t vfe_isr(int irq, void *dev) vfe->ops->isr_read(vfe, &value0, &value1); +#ifdef CAMSS_VFE_TRACE_IRQ trace_printk("VFE: status0 = 0x%08x, status1 = 0x%08x\n", value0, value1); +#endif if (value0 & VFE_0_IRQ_STATUS_0_RESET_ACK) vfe->isr_ops.reset_ack(vfe); -- 2.27.0.383.g050319c2ae-goog