From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCH] drm: Avoid forcing a detection cycle following a hotplug event Date: Wed, 19 Jun 2013 00:37:15 +0200 Message-ID: <4133723.b76XIp3Fxx@avalon> References: <1370447414-30844-1-git-send-email-chris@chris-wilson.co.uk> <3197467.TyeFeQIpal@avalon> <20130608075330.GA7325@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [95.142.166.194]) by gabe.freedesktop.org (Postfix) with ESMTP id DD2C4E5CE6 for ; Tue, 18 Jun 2013 15:37:01 -0700 (PDT) In-Reply-To: <20130608075330.GA7325@cantiga.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Chris, On Saturday 08 June 2013 08:53:30 Chris Wilson wrote: > On Sat, Jun 08, 2013 at 09:28:17AM +0200, Laurent Pinchart wrote: > > Could you please also update Documentation/DocBook/drm.tmpl ? > > It looks out of context there, as nothing explains the hotplug -> > fill_modes -> probe -> detect loop... Sorry, I should have been more precise. You patches changes the prototype of the fill_modes() operation and the drm_helper_probe_single_connector_modes() function, documented in drm.tmpl. I'd like to keep the documentation in sync. > > How about: > > Modes > int (*fill_modes)(struct drm_connector *connector, uint32_t > max_width, uint32_t max_height, bool force); > > Fill the mode list with all supported modes for the connector. If the > max_width and max_height > arguments are non-zero, the implementation must ignore all modes wider > than max_width or higher than > max_height. The driver may use the existing > connector status, unless force is passed. During > a hotplug event, the driver may already have updated its knowledge of the > output and so may simply refresh the modes list from the information it > acquired whilst handling the event. However, the caller may explicitly > request that any cached information be dropped, and for the output to be > queried for its current status and modes - under such circumstances > force is true. > That looks good to me (I would split this in two paragraphs, but that's just nitpicking). Could you please also update the drm_helper_probe_single_connector_modes() description in drm.tmpl ? -- Regards, Laurent Pinchart