From: Chris Wilson Subject: Re: [PATCH v2 1/7] drm: Add fb_helper->restore_fbdev_mode hook Date: Mon, 3 Jun 2013 10:50:55 +0100 Message-ID: <20130603095055.GI11399@cantiga.alporthouse.com> References: <1370020027-27595-1-git-send-email-ville.syrjala@linux.intel.com> <1370020027-27595-2-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1370020027-27595-2-git-send-email-ville.syrjala@linux.intel.com> 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: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, May 31, 2013 at 08:07:01PM +0300, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > Drivers may need to turn off overlay planes, cursors, etc. when > restoring the fbdev mode. So allow drivers to provide their own > version of drm_fb_helper_restore_fbdev_mode() that can take care > of such details. > = > Initially just plug in drm_fb_helper_restore_fbdev_mode for all > drivers. I really don't like the bool interface here, and it looks even more confusing when passing through the hooks. Can we have this changed to be a proper error code? -Chris -- = Chris Wilson, Intel Open Source Technology Centre