Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp187275ima; Thu, 31 Jan 2019 14:43:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ffGNgWEcIh9qaV6aZQLmqq9ydXtw0BFx6PlSePl0l6pClves30eUKbk+SVTa8fyMlJedj X-Received: by 2002:a62:c101:: with SMTP id i1mr36607975pfg.80.1548974584306; Thu, 31 Jan 2019 14:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548974584; cv=none; d=google.com; s=arc-20160816; b=pPZJJRFlxed3hsDurHRRtj4m/ktBPH3u/MEjUUi7+w+TUBvVfaqRUwfadVAhDyT5T1 HKCUar+d+azVEnbQL/tp3Nica2XF3+L7SAIUVlsyqknsKfEC7va42Jem/rNBu/Rc+0pe 3nebuga58BAy+BlWTq6Cq7s/67uRQ37JfLhtLu6f3DhGOQ4g0Lc8Wme7BzK1w3ACHfGU rOTdXZrqoaaDrpYc5CSH92Vdvw0vyaRoxH3QsTtUnxEupjCwr1h80ymtdCP5W6gPUQSu 6tsCx3BL23w9bqen0Yra5nnEjpc1v0hFSu22+G6ilWEAhHHYbQbTRh15EsWjY+mCY0KC gQag== 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:message-id:subject:cc :to:from:date; bh=CbzutC91Gq1yjT70kgqcepbAZtRc2+Fbbvd0LlR7TUk=; b=E4mlCaqxqnDMnCVgJ0Z4pFLTBKM5bvV9ISEm/oRHj4CQCQMASvDh+KBUIDrjqhZOCq ixFzuMpEBvTPiQD7z3IvblYOI/BRASOAPt17hZvXSudc1oBdAsGmZE+27bn9NaI56IEv fO5LxZMqHatR2jqpq0FSmrzT6as/7o/EpisoP+EQEPPsoCy6/3y2jQ67Zqo6TM+2KE2p im3TFppooORZ6FQ8G3Odz8Z19iEUnFae3sQyMuMHtjQyvzY2tUmjnaXeaGdHLxwZpk2S CIgAwGgCRxVF+4jzNT2/kA91iw/CPrAIZgfDjvgsI6nCBZQRLRzahYK9bvVewSv+EOBd kxIg== 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 v10si4575734plg.82.2019.01.31.14.42.49; Thu, 31 Jan 2019 14:43:04 -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 S1728405AbfAaVDR (ORCPT + 99 others); Thu, 31 Jan 2019 16:03:17 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:34954 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbfAaVDR (ORCPT ); Thu, 31 Jan 2019 16:03:17 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 306C880480; Thu, 31 Jan 2019 22:03:13 +0100 (CET) Date: Thu, 31 Jan 2019 22:03:12 +0100 From: Sam Ravnborg To: Sean Paul Cc: Thierry Reding , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Linus Walleij , Stefan Mavrodiev , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/19] drm/panel: drmP.h removal and DRM_DEV* Message-ID: <20190131210312.GA8947@ravnborg.org> References: <20190131192619.9763-1-sam@ravnborg.org> <20190131200723.GZ114153@art_vandelay> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131200723.GZ114153@art_vandelay> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=UpRNyd4B c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=tJRMQ8IxFmv1hn5U_dgA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sean. > Hey Sam, > Thanks for the patchset, this will make dmesg grepping easier! One comment, and > you're going to hate me for it: Why use DRM_DEV* instead of DRM_*? > > When I introduced DRM_DEV, it was to cover the case where there are multiple > instances of the same driver (ie: dual-channel mipi, multiple crtcs, etc). I > suppose that _could_ happen in the panel space, but it seems more unlikely than > not. The rationale for using DRM_DEV* are solely that if a struct device * is avalible, then we can use this to provide more information about the origin of the logging. I have not testet it - but from browsing the code I could not see that DRM_ERROR and friends picked up the module name. If DRM_ERROR is the right choice I will redo the patches - no problem. But if we loose the module name then the DRM_DEV* variants are preferable IMO. Note: I missed DRM_DEV_WARN(), so I left one dev_warn() in the code. Sam