Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5529502imb; Thu, 7 Mar 2019 18:34:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwzi91nsmVBRR0bFSYGNcVtWKiJADcgXaUGWpO5KJNo4ZUUvqimfki97jSKMqkRK0Jmlyx2 X-Received: by 2002:a63:cd06:: with SMTP id i6mr14539685pgg.267.1552012471374; Thu, 07 Mar 2019 18:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552012471; cv=none; d=google.com; s=arc-20160816; b=aRsoMe7jlnWU+FxDjRzgyRpAf1suK8Yqkrg1oB/GkILuPAcqHbbr2touF4JVFKXrY7 wAFrRhtGUjcPxqhiv4e+WEGiFN7T48ccWgg8hu1NIK+kR04/LS31cyRnHUSD+ptJrFhP hPEGKeSJRVr7iDINYF1hVnYYyRbu0m0YYNbCl0CKXj0xxoYYKa+X5/kBj9z+hdGTOrze CtRWS9WrnN0eox/Y+nXgwPH1/OIBxuuTUt7GnBruyZFHXw5ObqAvnYolr4WBcd2I1mcj ujMZZ2NC/pPrmHG6WCB7AWqVi5T7KS4/mHm0eOUwBGI/khxEWIEoXBBBmY5HgK2EvjKy SbLQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Ym8FPv/+Xi4c46QXBBUz2HnVcvT17EaGNfFbTaR1c/w=; b=nuwE4vJcgXxhUtP3tf2m4AK9JepogvXTYkCzjwbJhvDJb8I+PhlqXZrNU+qZpsC+4d b1NPFCKOok1tz/NWWSryxkDTAMM7prYWaa2LbLCsTz8lDoqLtWvrS8R+eF3EX+AIQ2EE Khzxy6TiZ/MFsGdNOjcqgKBQr9Nzmci1lDLAPezet+JG3LPjHIX29tZ0GDUSD+bueDHR b3XlxNViMqYhAQpQL3aW+ftBrT/2qRec9+ugSWZX6qlb9zIyvyv0X2lOiNhr7HtfV09Q CV3lcdVCMtkouOnoZVTwhegkxxxHCNFRcyWrupC39AEaWBz/PEOnEr3hejTexhump4Nj SWOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si5547973pfh.90.2019.03.07.18.34.15; Thu, 07 Mar 2019 18:34:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726382AbfCHCdr (ORCPT + 99 others); Thu, 7 Mar 2019 21:33:47 -0500 Received: from smtprelay0098.hostedemail.com ([216.40.44.98]:57676 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726275AbfCHCdr (ORCPT ); Thu, 7 Mar 2019 21:33:47 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id AEB07181D3403; Fri, 8 Mar 2019 02:33:45 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:4321:5007:6742:8879:9010:9389:10004:10400:10848:11026:11232:11658:11914:12043:12296:12740:12760:12895:13069:13161:13229:13311:13357:13439:14659:14721:14777:21080:21433:21451:21627:30026:30054:30091,0,RBL:149.142.244.224:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: voice01_3d2bd574b284c X-Filterd-Recvd-Size: 2623 Received: from XPS-9350 (unknown [149.142.244.224]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Fri, 8 Mar 2019 02:33:39 +0000 (UTC) Message-ID: <58d834c0b0aeeb7e551e101a696ab8faf9d41b61.camel@perches.com> Subject: Re: [PATCH v2 2/6] staging: video: rockchip: add v4l2 decoder From: Joe Perches To: Randy Li , linux-media@vger.kernel.org Cc: Randy Li , hverkuil@xs4all.nl, maxime.ripard@bootlin.com, joro@8bytes.org, linux-kernel@vger.kernel.org, jernej.skrabec@gmail.com, nicolas@ndufresne.ca, paul.kocialkowski@bootlin.com, linux-rockchip@lists.infradead.org, thomas.petazzoni@bootlin.com, mchehab@kernel.org, ezequiel@collabora.com, linux-arm-kernel@lists.infradead.org, posciak@chromium.org, groeck@chromium.org Date: Thu, 07 Mar 2019 18:33:37 -0800 In-Reply-To: <20190307100316.925-3-randy.li@rock-chips.com> References: <20190307100316.925-1-randy.li@rock-chips.com> <20190307100316.925-3-randy.li@rock-chips.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-03-07 at 18:03 +0800, Randy Li wrote: > It is based on the vendor driver sent to mail list before. trivial notes: > diff --git a/drivers/staging/rockchip-mpp/mpp_debug.h b/drivers/staging/rockchip-mpp/mpp_debug.h [] > +#define mpp_debug_func(type, fmt, args...) \ > + do { \ > + if (unlikely(debug & type)) { \ > + pr_info("%s:%d: " fmt, \ > + __func__, __LINE__, ##args); \ > + } \ > + } while (0) > +#define mpp_debug(type, fmt, args...) \ > + do { \ > + if (unlikely(debug & type)) { \ > + pr_info(fmt, ##args); \ > + } \ > + } while (0) > + It's generally better to emit debug messages at KERN_DEBUG > +#define mpp_debug_enter() \ > + do { \ > + if (unlikely(debug & DEBUG_FUNCTION)) { \ > + pr_info("%s:%d: enter\n", \ > + __func__, __LINE__); \ > + } \ > + } while (0) > + > +#define mpp_debug_leave() \ > + do { \ > + if (unlikely(debug & DEBUG_FUNCTION)) { \ > + pr_info("%s:%d: leave\n", \ > + __func__, __LINE__); \ > + } \ > + } while (0) I suggest removal of these macros and uses. There's not much value in enter/leave markings as the generic ftrace facility does this already. > + > +#define mpp_err(fmt, args...) \ > + pr_err("%s:%d: " fmt, __func__, __LINE__, ##args) __func__, __LINE__ markings generally have little value.