Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp200208ima; Thu, 31 Jan 2019 15:00:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN6TDEOFEVunb+7WTjzfTEgV6zzTyVKEo++Zk68PkcE2BhS7tP/BZ/gDNre82xMs+O91ad+A X-Received: by 2002:a63:b4c:: with SMTP id a12mr33814084pgl.131.1548975613378; Thu, 31 Jan 2019 15:00:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548975613; cv=none; d=google.com; s=arc-20160816; b=0IouGB1uTsm7n/ZwJ6Vz/hPrvVZfs/MQJlSD9YC0Xa+WCWFFXn4R2dPTXMmFDHFttz FUCBhP0qekN3y1oTUhz3f4tndVM+Y6h11JSLzOe3LrizUIts7ocjseCN4jtA+I2znWNz /jsKAnW8SwLmq90AzfMPnhwAJLhZ7LaZ6X7B4KPtPmxqDU6FUwHi+1Bj94Jq1b+SrXEr LOdWdD2+M/Pm9FpbTPqfN3MOFsz+6TekONVGFZa3q7RCozMZexOSuT10Cpc9ChOofAUl reOqs+BUjpKdUxizxmXOxTco6UCzxPzn0vREyOFgIIzVvdcC8h+gTaedVO0AlrFvrklq Rd9Q== 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:dkim-signature; bh=xjti96rjxTWG805BS0sMyRjy1EHKCeJRvuL32qimD+s=; b=HYZmbSJYCuoTzmYiceJv6zNJmHKXalYJpCNhwUjfRxePFLF2O3sqjPywhmoQwgNoo8 /A/If2P/IwHcSH9kU0M9ffEav0CTxYMkl9tbj9AsEg0P9mROm3UQdgl+XdrWksSPfBsK +2MC0bpdnhTY6r6xuY8igvF91GeetEQgIOACT/2zBZjIEJCOuTLxNo5E8DlTTYoPRQ2Q EFZSgRey20eaG8mRVChLX1pEcpWS//qNbIpHMBb4APAcFfzfo+dSG5C13yZdIqCdy77K 0HMShkThWQZ4JfqxHLW4neY1fhXhzyxi0dBIxnV7sPQDhbVhDDpcP1q41Y59mSFc6YUm 44hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="oxo/45EW"; 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 n59si5750819plb.388.2019.01.31.14.59.57; Thu, 31 Jan 2019 15:00:13 -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="oxo/45EW"; 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 S1728626AbfAaVyX (ORCPT + 99 others); Thu, 31 Jan 2019 16:54:23 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33884 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbfAaVyX (ORCPT ); Thu, 31 Jan 2019 16:54:23 -0500 Received: by mail-wm1-f66.google.com with SMTP id y185so3113083wmd.1 for ; Thu, 31 Jan 2019 13:54:22 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xjti96rjxTWG805BS0sMyRjy1EHKCeJRvuL32qimD+s=; b=oxo/45EWs6R/+4nfZsmZSInV7FvPoLjEF98SzzgrftgOpbfNUinPnH/6oo1liEdWX6 dnteZb+C0igUweOt6HYwMYqqwzdIlbwQy1xUwjnRinquDeoZO5YN55SpFGYUI1774Kg5 ZZ/1WDJpj3xcYbwrtAqOy0hvaUE7SaVbTXDhJdyBHf9KCoaY3o7gHK0qxHql46aJZoEp CVlEYlro16lL53uME1Im++O+rPtxn8QTpWyyhkKG83cTIVyr48HehxiBX0vGvYL4vXV2 yG73DZktmGIppzyGV54FFZyh4SL6+aC/ZGMR/gzB7340BnlPwouRJ4AhYbfNX6oAmD14 +hjA== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xjti96rjxTWG805BS0sMyRjy1EHKCeJRvuL32qimD+s=; b=dDLyorzvMkUwgtNjfNN+hA5XlGKxU/IJni3j6c9Dty6sSIbpxYh+H8RPIq0jemQTie QRrgNw4UK/oNne3HXWkAlEk+rbaS4SVNOl1J8D/g4szgsV7DRaZ6d3nlRGlrBEYf9X7Q fMKOO/YmlxtRDkswfpH+taFdD+NbjGur4wrENCPyF4PVqr0UAOyyTJV2wXOVkBBQPhdv d2MhxkjhAh9f7gtyuXWAu6DSutYskf0UeqpskFd8oCvkKoxv3JAvMgHtRbyuTyC727sx ubNieMDezEQQ87q81ca7ZE16Yw7F2jDPQgGbB17yc8Zuc4J6z3FmrpZjW6mhDFhqV/yo H4rA== X-Gm-Message-State: AJcUukdq3j8ni+AdP47CCxqfb0E1XtlU0BEoSpTVgWONPpZjmV8ARoEd Fls5ihdkjLRf9KIVoBHuqVAPLTkjxDs= X-Received: by 2002:a7b:c181:: with SMTP id y1mr31586746wmi.10.1548971661213; Thu, 31 Jan 2019 13:54:21 -0800 (PST) Received: from localhost (p200300E41F128C00021F3CFFFE37B91B.dip0.t-ipconnect.de. [2003:e4:1f12:8c00:21f:3cff:fe37:b91b]) by smtp.gmail.com with ESMTPSA id k128sm700475wmd.37.2019.01.31.13.54.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 13:54:20 -0800 (PST) Date: Thu, 31 Jan 2019 22:54:18 +0100 From: Thierry Reding To: Sam Ravnborg Cc: Sean Paul , 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: <20190131215417.GA13156@mithrandir> References: <20190131192619.9763-1-sam@ravnborg.org> <20190131200723.GZ114153@art_vandelay> <20190131210312.GA8947@ravnborg.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20190131210312.GA8947@ravnborg.org> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 31, 2019 at 10:03:12PM +0100, Sam Ravnborg wrote: > Hi Sean. >=20 > > Hey Sam, > > Thanks for the patchset, this will make dmesg grepping easier! One comm= ent, and > > you're going to hate me for it: Why use DRM_DEV* instead of DRM_*? > >=20 > > When I introduced DRM_DEV, it was to cover the case where there are mul= tiple > > instances of the same driver (ie: dual-channel mipi, multiple crtcs, et= c). I > > suppose that _could_ happen in the panel space, but it seems more unlik= ely than > > not. >=20 > 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. >=20 > 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. >=20 > But if we loose the module name then the DRM_DEV* variants are preferable= IMO. I personally like the DRM_DEV_* variants better because of the additional information that they provide. That can be useful when grepping logs etc. I'm slightly on the fence about this patch. The unwritten, and admittedly fuzzy, rules that I've been using so far are that dev_*() are used or messages that have to do with the panel device itself, whereas DRM_* variants are used for things that are actually related to DRM. So typically this would mean that roughly everything in ->probe() or ->remove() would be dev_*(), while the rest would be DRM_DEV_*(). The reason for this is that during most of ->probe() there's not really any connection to DRM. In many cases the DRM device doesn't even exist yet. Consider component/master setups where some display component will wait for the panel to be registered before binding the master. So I find it confusing to have the DRM style messages when there's actually no DRM going on yet. That said, I understand that this might not be an immediately obvious rule and it might not be followed rigorously, which both quite possibly contribute to the perception that the messages are all inconsistent. It always made sense to me, but if everyone else thinks that it's totally nuts, I'm sure I can find a way to get over it. Thierry --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlxTboUACgkQ3SOs138+ s6Gcug/+JZImCInI8kyPqT4pN4qRbXmCAFeUpKSh19yHN5MnisK14xu14qClW/q2 3cv+JxY6U93cvWkSn+hfLU0K4TRXS/dmz6AB5AC/lj3ADOUxFW75gweGlCVoKMv2 bwYXlOACghDjdW7uhpgHeTxB/TPkE2Oaz9+47SVZBFbeCFTWx6XfQ5tfQG9BperP rXXHyZbOHCEu2yoov1zfIWfxxTA9VsSluKB6AX62EJ1XGMQHC+tPJtPXbryZMc5v AZzaQjv8Q+yitPwrZLmQF7vLJ5C7l/NhOy20BrlHW38gDC8Q2q4quwNaoP8W6mE6 6vp/W3YB7O5YLy5v/fYz+wf9smq3A3o/o3qLAN7g9koMc8OnMCPDLznM4xnkAF69 U0krpggxq/T7aDqroazZI1/WQchbq2+bkSn3xv3CqY3SypEpnoqGhHjR3+cYP3W3 6FnJqpdZ6og4In8P5adVS2KnBXWCZM4iQnFsH+pTSkPv6Wfb6Z3fkeEKX4c5VTXc oEJuNp7BSO1mJQjCHkwiuR2j6o/iEF6gNTuO4OMCwcqjGM61Fyz1BtIat3hpF/3E rBWZSS8tlz98+382Zvbc6w92fbu0Gyqky2JGju3qnUdp3e+c4lADLhQWKIXzw0dS FZd+w9iEO3fBFR/OpcA/KoPE0M1b9FnN54tCCmgdnnVR3W8jBjs= =XIfx -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--