From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 1/3] drm/i915: make FDI training a display function Date: Wed, 20 Apr 2011 08:16:44 -0700 Message-ID: <20110420081644.3b928320@jbarnes-desktop> References: <1302211980-10089-1-git-send-email-jbarnes@virtuousgeek.org> <1302211980-10089-2-git-send-email-jbarnes@virtuousgeek.org> <20110420144508.GA12517@lundgren.kumite> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cpoproxy2-pub.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by gabe.freedesktop.org (Postfix) with SMTP id B8F209E9D3 for ; Wed, 20 Apr 2011 08:16:52 -0700 (PDT) In-Reply-To: <20110420144508.GA12517@lundgren.kumite> 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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, 20 Apr 2011 07:45:08 -0700 Ben Widawsky wrote: > > @@ -7270,6 +7267,7 @@ static void intel_init_display(struct drm_device *dev) > > "Disable CxSR\n"); > > dev_priv->display.update_wm = NULL; > > } > > + dev_priv->display.train_fdi = ironlake_fdi_link_train; > > } else if (IS_GEN6(dev)) { > > if (SNB_READ_WM0_LATENCY()) { > > dev_priv->display.update_wm = sandybridge_update_wm; > > @@ -7278,6 +7276,7 @@ static void intel_init_display(struct drm_device *dev) > > "Disable CxSR\n"); > > dev_priv->display.update_wm = NULL; > > } > > + dev_priv->display.train_fdi = gen6_fdi_link_train; > > } else > > dev_priv->display.update_wm = NULL; > > } else if (IS_PINEVIEW(dev)) { > > I prefer when the function pointer is named similarly to the function. > Makes it easier to read/find code. > > (*fdi_link_train)(struct drm_crtc *crtc); > OR > (*link_train)(struct drm_crtc *crtc); Yeah, fdi_link_train is probably a better name. Thanks for checking it out. -- Jesse Barnes, Intel Open Source Technology Center