Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1333455ybx; Thu, 7 Nov 2019 10:30:34 -0800 (PST) X-Google-Smtp-Source: APXvYqz9izU8T7zHZKxR+Oed0U/TxRG+o+K4ZDU+ncpJymiXHVow1v9IVBBK13j8TE7/FuoV3jdl X-Received: by 2002:a17:906:bd2:: with SMTP id y18mr4426268ejg.315.1573151434361; Thu, 07 Nov 2019 10:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573151434; cv=none; d=google.com; s=arc-20160816; b=R5UdYBzpU0HiW5wC7ZhfjvITVIHF30XRKsjcsGV4vJilKaHARGP+P7O6h15doaZSFN bZv1hy2JhppfVITjyAFFVClVee6JMFmE9carb4Ha8bhqLt6IoypwdQ1m65sTv+T3j1Bb d+/EOa+/9ln9o4+siQn+aJNOimrBmFZqA/P+mNhcqJLl39gkc7Or47/2XMz3u8bk9S6U WIszOEpCRx+OoeB1Gmx7BDPijUxEDuZqa97a5MfxzFyFYyOPSBwzOpJzrzItbxZueOXj QMhBPGAYy3H2nb+lEy8y9LD11JZ0j+pUteTy3BujK5ovBBsLMLh9Z6QYoIYO14hCKXnR 5lBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=L27L6nvKvaj+gPXc0hUn4bbWpeFZdtO6lr7Y2U0Ty4M=; b=aUsRPwanYobB3KzjRI7mIbiZuj8cNlaiTKnUC9G+7E0T0j7rCt/KZ/Ya9Y6AAq6lPo fvtsofad4Q7ccCrSnUWRbPZT/t2nwCwJS0swElzrI3N3JuYYbYIENdEmjIZwVCWyybaV p9o2sJ39Y3kOQVoxPQYPJN/3e67a3DoBmitTY3Q4qhNOVp3zEYGrkUFu50Pr7Oqi6qZL AfVj6s+5qRawr6W/4BHJJ53ysS+8aoAGoR0LmlUrhxHM/bb5AD03UkW0ePrskzjEcvYe krEXFO0OMrSGrl96lIqXTAJYL1pxuRRaWNUYSqDQLFe1/kOrPXa9NfAvMd89CxTfxWFw XAFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rbUomZKe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si2131489eda.162.2019.11.07.10.30.10; Thu, 07 Nov 2019 10:30:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rbUomZKe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbfKGS3V (ORCPT + 99 others); Thu, 7 Nov 2019 13:29:21 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40482 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfKGS3V (ORCPT ); Thu, 7 Nov 2019 13:29:21 -0500 Received: by mail-pg1-f196.google.com with SMTP id 15so2553611pgt.7 for ; Thu, 07 Nov 2019 10:29:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=L27L6nvKvaj+gPXc0hUn4bbWpeFZdtO6lr7Y2U0Ty4M=; b=rbUomZKewSy4DXhw/7Z7m3aDjtDHGfsAELPyU27m6jCHbYjFFdiyfTC6mZjX4XjgwO secNzkkFwPso2HohuanZpJAlrW2mbDRRAaoXFhhzp5KYENc9r910tqazGZS7+hrBtB7H GFS55JgTj2VCW45MbVTWwrTNTVdZq0gcK9dWG45jOVju9al4s+pZc1UTM1jyxj6fn0/k PodVmbSh5UnsfSL1g25h3ax/kVBD/BGBoj80X6tkfE6MOrom/b6/FSlpPwUGeD1kyG1h pfkkFRvPJSJ/HB6oKRfWpudMsKLPrtBEVaVM3K4k89YH49IJfBD4252Ombv87DBtHJdO cNAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=L27L6nvKvaj+gPXc0hUn4bbWpeFZdtO6lr7Y2U0Ty4M=; b=W4VhCH5ouepcS5Kl960ILT9OLUBMBNtEMUGH/0b1EJJhg424mU/c9JeumnKyDxPURH ruLavE+/1LaBj7rF2JbErU49d3G5pn28rvP2vAoaIiHPJQttdaxoOzQfsyPcrJla2uRE 5xoFGlOeYK3sBFdkYUYHQttV7bWWSga+RHUnC4ItZuiQFWKxFqD9JvstA6p7n8t654ZW WexZh3loCEegbjpSdZfr3T3kPQTV1XZj+YxAZHQCxgmNMpAP2KmyFhb7F4V2I4bA4Fp+ 9QVW4q15n2mkPbGRp4qEscTX0DqPM933NWGZrvXrZABJhFqoTZIsFAkLDGt32kfNCbqa +ENQ== X-Gm-Message-State: APjAAAWW/MJCP3DPjsPg5NMyMkSLyHCJAvqfsbrJxx6cvd37mf1Lao74 A+w+8zgZgT+z+xBBn37gOOg= X-Received: by 2002:aa7:82cd:: with SMTP id f13mr5896715pfn.69.1573150968760; Thu, 07 Nov 2019 10:22:48 -0800 (PST) Received: from wambui ([197.237.61.225]) by smtp.gmail.com with ESMTPSA id e17sm3711816pgg.5.2019.11.07.10.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 10:22:48 -0800 (PST) Date: Thu, 7 Nov 2019 21:22:35 +0300 From: Wambui Karuga To: Sean Paul Cc: hjc@rock-chips.com, heiko@sntech.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, joe@perches.com Subject: Re: [PATCH] drm/rockchip: use DRM_DEV_ERROR for log output Message-ID: <20191107182235.GA3585@wambui> Reply-To: 20191107133851.GF63329@art_vandelay References: <20191107092945.15513-1-wambui.karugax@gmail.com> <4c74db2614cefe23f888d0643c2d7c356086745a.camel@perches.com> <20191107133851.GF63329@art_vandelay> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191107133851.GF63329@art_vandelay> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 08:38:51AM -0500, Sean Paul wrote: > On Thu, Nov 07, 2019 at 01:54:22AM -0800, Joe Perches wrote: > > On Thu, 2019-11-07 at 12:29 +0300, Wambui Karuga wrote: > > > Replace the use of the dev_err macro with the DRM_DEV_ERROR > > > DRM helper macro. > > > > The commit message should show the reason _why_ you are doing > > this instead of just stating that you are doing this. > > > > It's not that dev_err is uncommon in drivers/gpu/drm. > > > > It is uncommon (this is the sole instance) in rockchip, however. So it makes > sense to convert the dev_* prints in rockchip to DRM_DEV for consistency. > > Wambui, could you also please convert the dev_warn instance as well? > Sure, I can send a patch for that. > I'll apply this to drm-misc-next and expand on the commit message a bit. > Thanks, wambui > Thanks, > > Sean > > > $ git grep -w dev_err drivers/gpu/drm | wc -l > > 1950 > > $ git grep -w DRM_DEV_ERROR drivers/gpu/drm | wc -l > > 756 > > > > > diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c > > [] > > > @@ -916,7 +916,7 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) > > > } > > > > > > if (!dsi->cdata) { > > > - dev_err(dev, "no dsi-config for %s node\n", np->name); > > > + DRM_DEV_ERROR(dev, "no dsi-config for %s node\n", np->name); > > > return -EINVAL; > > > } > > > > > > > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel > > -- > Sean Paul, Software Engineer, Google / Chromium OS