Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2976568ybx; Fri, 8 Nov 2019 12:09:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxyaBmgQBGQKx969ONA33+8vqPHQxy90O+fAgAUnZPqEusBZXy1KaQjktBiQpLoMcNUmTmA X-Received: by 2002:a17:906:3e08:: with SMTP id k8mr10838420eji.5.1573243764818; Fri, 08 Nov 2019 12:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573243764; cv=none; d=google.com; s=arc-20160816; b=M7vlSOQ1wLL1Aqqkbl1YamfHQ6eLT33+YmFtZebOOJVkil7n4QGdLoCOgo6PqetPrQ rHYo3Lrb5WKd+8JtqCy68J4pfI+QJD2UVzRMbLfcaETYVFrK21u6AF/IXsJPf4AScbS8 xTpX/K9WmqskRelev9hK95D6bNJsDfSN13NZlNYWsW+TH4pOitQb9pG9fO5M8UGHZdfH TW4s3oPXH/liP0wU7wQUuVOtCuzpFLnbJFl5lMYhiFZEh3xSLadPaYnraXDI6T5bmnor qfNwgq7ZGC89yuvaXIoqJbTP373jh62Rf6DlLt0jE9exwmNbPt4g02JKcuwxp6dypO6b Tntw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=gwf03HQCJcAeKeVV6CDOtpVEM+58xqWFoXIO9s1VR2c=; b=xTcsO8HWGHJUMCLyeefn5+sExyzY6xYskRK+JNldLltKEPOpfdm9VIT+y07O1/Vjmj tR716htO/y4wG8Uj4k+JNeE23XZkSlHLRXWKilzxrQDKijtjgJqJ8p98nmULIAOJ6LbJ Hm71fTkEWYxSdrHCNgqA6iYggkvT2/Hy8HxBbzi6rc12NJ7W9M+SsdFoOYFH0zl/UvAX +nmTuGkJ3pi5aJ6VKLe5222E8cXTNTfAGYtHyWbIoZrrpMBHD48zCHL4lIVEJ/YMqFxV Pddu3p9t8GYShEJzjHcFTpFwSgQ88t/rhyWV3m6V3OlpBUPCmk88zPe0z6d678xQfPX4 xPwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NhDzQyPS; 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 l42si5319103edc.309.2019.11.08.12.09.02; Fri, 08 Nov 2019 12:09:24 -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=fail header.i=@gmail.com header.s=20161025 header.b=NhDzQyPS; 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 S2388049AbfKHUH6 (ORCPT + 99 others); Fri, 8 Nov 2019 15:07:58 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38588 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387874AbfKHUH5 (ORCPT ); Fri, 8 Nov 2019 15:07:57 -0500 Received: by mail-wm1-f66.google.com with SMTP id z19so7452501wmk.3 for ; Fri, 08 Nov 2019 12:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=gwf03HQCJcAeKeVV6CDOtpVEM+58xqWFoXIO9s1VR2c=; b=NhDzQyPS3minpgWDPizoGqVOo5LUY7O8ofGjJhFjcBBc0tuZyxmovgfXtvEDtqm6kt mAbUOvYMvXf6r2wubPDvUB5Yy3AuG+0bILmDhgKGK5M2SBO6rwpXTQ7ANTanZxpnp9lY shWw618Egw0M0qmXLUzqP+VotL72Rbxwo6IsH2N98Kyn3NkwIvaMArjnlkWRPdhIxNzn 5oSRjKXnIf9Y/nBgd1/K/sQHSg84VlklYgJ8zAs0ELzIRHZ4z1bHMUutqq9VixeCCrKU jlUpsfARXvnewUQy2MH2twYVu5srqi8+rErn3h1EFc/y6nouyas0WjWayb5/VMAHwpDi gLdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:in-reply-to :message-id:references:user-agent:mime-version; bh=gwf03HQCJcAeKeVV6CDOtpVEM+58xqWFoXIO9s1VR2c=; b=GfaKpGGVteTLgnyk9I3u9VT5yJudWQdSWd6KhuUoIEHED8aHfg7cBW68ktxli7a+Vy xz2oLkTdSvjyOB/G4KLsaqQ0FldoYrGitDmKRoeNIcggh+tvzcQOj63EW2I4XpVle+wX UOI1GUCs0PUjIb62dgo6Rb1QxyWFM/5Tygk6UTG7P8BJkkmsvjjC/Tr2NRGJMUFAtTQI pln47Via90IO6iQrlnQWjD3Wn64vNUQELolqKWkh9INObfST3bBylLfohBfILldSg0ed F9jIj9lvQ7iciJPtN69hcB7MaEOV9sB8ePwWl9KsivRjPfn0mzXW5cKdOmIUnTCoJmXK yzXw== X-Gm-Message-State: APjAAAVNj6sw3tRUViszjlDcWYcJgznFgGCGXtuEFWMqKhe7FfHPDK43 1a4GAoqhqty7f55RiXTKWJs= X-Received: by 2002:a1c:b1c3:: with SMTP id a186mr10052449wmf.10.1573243675924; Fri, 08 Nov 2019 12:07:55 -0800 (PST) Received: from wambui.local ([197.237.61.225]) by smtp.googlemail.com with ESMTPSA id f13sm6612474wrq.96.2019.11.08.12.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 12:07:55 -0800 (PST) From: Wambui Karuga X-Google-Original-From: Wambui Karuga Date: Fri, 8 Nov 2019 23:07:44 +0300 (EAT) To: Sean Paul cc: =?ISO-8859-15?Q?Heiko_St=FCbner?= , Wambui Karuga , hjc@rock-chips.com, 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 Subject: Re: [PATCH] drm/rockchip: use DRM_DEV_ERROR for log output In-Reply-To: <20191108160602.GG63329@art_vandelay> Message-ID: References: <20191107092945.15513-1-wambui.karugax@gmail.com> <20191107133851.GF63329@art_vandelay> <20191108124630.GA10207@wambui> <4996186.DxzAFJqeGu@diego> <20191108160602.GG63329@art_vandelay> User-Agent: Alpine 2.21.99999 (LNX 375 2019-10-29) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1284482943-1573243675=:13123" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1284482943-1573243675=:13123 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 8 Nov 2019, Sean Paul wrote: > On Fri, Nov 08, 2019 at 03:06:44PM +0100, Heiko St?bner wrote: >> Hi, >> >> [it seems your Reply-To mail header is set strangely as >> Reply-To: 20191107133851.GF63329@art_vandelay >> which confuses my MTA] >> >> Am Freitag, 8. November 2019, 13:46:30 CET schrieb Wambui Karuga: >>> 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? >>>> >>> Hey, Sean. >>> Trying to convert this dev_warn instance, but the corresponding DRM_WARN >>> macro does not take the dev parameter which seems to be useful in the >>> original output. >>> Should I still convert it to DRM_WARN without the hdmi->dev parameter? >> >> There exists DRM_DEV_ERROR, DRM_DEV_INFO and DRM_DEV_DEBUG to >> handle actual devices. Interestingly there is no DRM_DEV_WARN though. >> >> So depending on what Sean suggest another option would be to add the >> missing DRM_DEV_WARN and then use it to replace the dev_warn. > > Yep, this sounds good to me me. > > Sean > Okay, I can add DRM_DEV_WARN and replace it there. wambui >> >> >> Heiko >> >> >> >>> >>> Thanks, >>> wambui >>>> I'll apply this to drm-misc-next and expand on the commit message a bit. >>>> >>>> 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 > --8323329-1284482943-1573243675=:13123--