Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5855768ybp; Tue, 15 Oct 2019 06:09:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8NhyULwobrtMaAzcBLLUIQqlzcbx996t5aph+Ze+bT6FMOJsXxOJZLBvnN0KvQr7aCp7K X-Received: by 2002:a17:906:5292:: with SMTP id c18mr33748707ejm.129.1571144966083; Tue, 15 Oct 2019 06:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571144966; cv=none; d=google.com; s=arc-20160816; b=rY1eGkdhswa/ySijYewY7LHZIaYSiRNw6+msBDvb+B2e7elUlDPQQAObx3hEEKsRyQ HFhS3kHgs23jA2ZWBuiV3SIIejCv5rI30AsNcFj+PYDGnlYvanvdk4DlKQ/jLdI/IZuM lML6Gl9fQvVDSJFaWJKdla8fTWHJShD+aJH+31CkarzynVT4EQITaa9k1YmZBpsg9B/C sMqj9Qp7SsmBRZL/zPVE8Tsf+WxKzO6sK8hczEi9YaNkcrlOLc0BObx+BhQFzD/KdtOm rJVsM1c5XenAbLOaQ0T6VKQUV0aAjw7DFWmCLE6C3cpZ8bekURoPv/tx/yYXLN7bb2wa FsJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=3h0Ec36Mhg8Ce93MSAkQJf5tlne/A7+TlifQrunUFxg=; b=QM5JyuO7m19K0db/Lv332fbbThm3ebzop5CehwGoLgsUUnB1J5O6VVrTobo5aoamOi /P1JOZ80c4bClPUKAZ38E0CgHIszhrVQ1kCiCPucoAYAQRw2aYUJ/oe4axQ19XrnxaeN VRcEHfMjo6q6spk+nvdBqutRAJa2fHdKCUj/zDhq4/AyjvyIXPuiN6TxteXwZ6+Sj9Ou zbH+8ta00wC1niDz2b7n/ZOXNw1CwNEBHi9tbEgnyKmDoBIYOFqD2dVIm6F/9PkG3z2h XYbGmPer50Py+uK34qXDQTMP+vwJBm04tWye+5MxKWvN3RBAWuIpwG4qBbgvGO2CYwNi nFfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bt7WIdiU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id va9si13344143ejb.126.2019.10.15.06.08.59; Tue, 15 Oct 2019 06:09:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bt7WIdiU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730307AbfJONEx (ORCPT + 99 others); Tue, 15 Oct 2019 09:04:53 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:55192 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728607AbfJONEx (ORCPT ); Tue, 15 Oct 2019 09:04:53 -0400 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1A42B324; Tue, 15 Oct 2019 15:04:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1571144691; bh=ImVQfwXpK2+yZayUnOEJztLA7Et2bLnw2dxEra8Ts1A=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=bt7WIdiURvECjFCmmgBPoCT2Wju/m6oOj35+k2aHqB6gcElOeetbp6UEEPc6WPddx ASxW1PdiJCOXdFFX5VViPY5m5DlI1fiJq1xhgos+z+q9/Oe5V8vL0PSl0Q35W+/b0y F4CuWUB4+S49Q36Pn4Gjs9O/5vr3LGXjBwFZj2Rs= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH v5 8/8] drm: rcar-du: kms: Expand comment in vsps parsing routine To: Jacopo Mondi , laurent.pinchart@ideasonboard.com, geert@linux-m68k.org, horms@verge.net.au, uli+renesas@fpond.eu, VenkataRajesh.Kalakodima@in.bosch.com Cc: airlied@linux.ie, daniel@ffwll.ch, koji.matsuoka.xm@renesas.com, muroya@ksk.co.jp, Harsha.ManjulaMallikarjun@in.bosch.com, ezequiel@collabora.com, seanpaul@chromium.org, linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20191015104621.62514-1-jacopo+renesas@jmondi.org> <20191015104621.62514-9-jacopo+renesas@jmondi.org> From: Kieran Bingham Organization: Ideas on Board Message-ID: <76efb926-7315-cd29-0a49-9284bc1bd5e6@ideasonboard.com> Date: Tue, 15 Oct 2019 14:04:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191015104621.62514-9-jacopo+renesas@jmondi.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, On 15/10/2019 11:46, Jacopo Mondi wrote: > Expand comment in the 'vsps' parsing routine to specify the LIF > channel index defaults to 0 in case the second cell of the property > is not specified to remain compatible with older DT bindings. Reviewed-by: Kieran Bingham > Reviewed-by: Laurent Pinchart > Signed-off-by: Jacopo Mondi > --- > drivers/gpu/drm/rcar-du/rcar_du_kms.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c > index 7c9fb5860e54..186422ac552b 100644 > --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c > @@ -587,7 +587,11 @@ static int rcar_du_vsps_init(struct rcar_du_device *rcdu) > > vsps[j].crtcs_mask |= BIT(i); > > - /* Store the VSP pointer and pipe index in the CRTC. */ > + /* > + * Store the VSP pointer and pipe index in the CRTC. If the > + * second cell of the 'vsps' specifier isn't present, default > + * to 0 to remain compatible with older DT bindings. > + */ > rcdu->crtcs[i].vsp = &rcdu->vsps[j]; > rcdu->crtcs[i].vsp_pipe = cells >= 1 ? args.args[0] : 0; > } >