From: Daniel Vetter Subject: Re: [PATCH 02/10] drm/i915: extract ilk_display_irq_handler Date: Fri, 19 Jul 2013 18:04:25 +0200 Message-ID: <20130719160425.GK5615@phenom.ffwll.local> References: <1373657718-3008-1-git-send-email-przanoni@gmail.com> <1373657718-3008-3-git-send-email-przanoni@gmail.com> <874nbqagr6.fsf@gaia.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 10886E5C4F for ; Fri, 19 Jul 2013 09:04:25 -0700 (PDT) Received: by mail-ee0-f53.google.com with SMTP id c41so2486282eek.26 for ; Fri, 19 Jul 2013 09:04:25 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Fri, Jul 19, 2013 at 11:24:21AM -0300, Paulo Zanoni wrote: > 2013/7/19 Mika Kuoppala : > > Paulo Zanoni writes: > > > >> From: Paulo Zanoni > >> > >> It's the code that deals with de_iir. > >> > >> Signed-off-by: Paulo Zanoni > > > > Minor observation on the whole irq stuff: ilk, ironlake and ivb, > > ivybridge are both used and I couldn't figure out the pattern. > > You mean the function names, right? This is something that confuses me > too, all our code is inconsistent and I'd like to know what's the > preferred way. We seem to use both ways: vlv_find_best_dpll vs > valleyview_crtc_enable, ironlake_crtc_mode_set vs ilk_update_plane, > haswell_modeset_global_resources vs ivb_modeset_global_resources. I > tend to prefer the shorter versions because I believe these acronyms > should be obvious (or easy to discover) for people reading our code, > but having some guidance on which one to use on each case would be > good. Opinions? I prefer the shorter ones, too. But iirc Jesse is liking the longer ones more, at least he tends to use them in his patches. I guess we'll just have to flag this in patches. New fodder for a good bikeshd ;-) Cheeers, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch