From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCHv4 04/13] drm/shmobile: Restrict plane loops to only operate on legacy planes Date: Fri, 28 Mar 2014 16:50:13 +0100 Message-ID: <18133792.tr0thX4a4c@avalon> References: <1395967478-30549-1-git-send-email-matthew.d.roper@intel.com> <1395967478-30549-5-git-send-email-matthew.d.roper@intel.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 C006D6E6B6 for ; Fri, 28 Mar 2014 08:48:14 -0700 (PDT) In-Reply-To: <1395967478-30549-5-git-send-email-matthew.d.roper@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Matt Roper Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Matt, Thank you for the patch. On Thursday 27 March 2014 17:44:29 Matt Roper wrote: > Ensure that existing driver loops over all planes do not change behavior > when we begin adding new types of planes (primary and cursor) to the DRM > plane list in future patches. > > Cc: Laurent Pinchart > Signed-off-by: Matt Roper Acked-by: Laurent Pinchart I have a question though. The patch set introduces three plane types, OVERLAY, PRIMARY and CURSOR. What should a driver that has no concept of primary plane do ? Expose all planes as OVERLAY planes only ? > --- > drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c > b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c index 0428076..ea543b4 100644 > --- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c > +++ b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c > @@ -247,7 +247,7 @@ static void shmob_drm_crtc_start(struct shmob_drm_crtc > *scrtc) lcdc_write(sdev, LDDDSR, value); > > /* Setup planes. */ > - list_for_each_entry(plane, &dev->mode_config.plane_list, head) { > + drm_for_each_legacy_plane(plane, &dev->mode_config.plane_list) { > if (plane->crtc == crtc) > shmob_drm_plane_setup(plane); > } -- Regards, Laurent Pinchart