From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kieran Bingham <kieran.bingham@ideasonboard.com>,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
DRI Development <dri-devel@lists.freedesktop.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH v2 5/5] drm: rcar-du: Map memory through the VSP device
Date: Mon, 22 May 2017 16:23:58 +0300 [thread overview]
Message-ID: <1878179.RM5CVv0lR3@avalon> (raw)
In-Reply-To: <CAMuHMdUxVTrQiROtq_aEaQDsPUVt697FBFTPrO_KKfeQAa+CXg@mail.gmail.com>
Hello Geert and Kieran,
On Monday 22 May 2017 15:00:27 Geert Uytterhoeven wrote:
> On Mon, May 22, 2017 at 2:52 PM, Kieran Bingham wrote:
> > My only distaste there is having to then add the [i-1] index to the
> > sg_tables.
> >
> > I have just experimented with:
> >
> > fail:
> > for (; i-- != 0;) {
> > struct sg_table *sgt = &rstate->sg_tables[i];
> > ...
> > }
> >
> > This performs the correct loops, with the correct indexes, but does the
> > decrement in the condition offend coding styles ?
> >
> > If that's disliked even more I'll just apply your suggestion.
>
> You can still use "i-- > 0", which looks a little bit better IMHO.
I'm fine with that option too.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2017-05-22 13:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 23:20 [PATCH v2 0/5] R-Car DU: Fix IOMMU operation when connected to VSP Laurent Pinchart
2017-05-16 23:20 ` [PATCH v2 1/5] v4l: rcar-fcp: Don't get/put module reference Laurent Pinchart
2017-05-16 23:20 ` Laurent Pinchart
2017-05-22 11:36 ` Kieran Bingham
2017-05-16 23:20 ` [PATCH v2 2/5] v4l: rcar-fcp: Add an API to retrieve the FCP device Laurent Pinchart
2017-05-22 11:44 ` Kieran Bingham
2017-05-16 23:20 ` [PATCH v2 3/5] v4l: vsp1: Map the DL and video buffers through the proper bus master Laurent Pinchart
2017-05-22 11:47 ` Kieran Bingham
2017-05-16 23:20 ` [PATCH v2 4/5] v4l: vsp1: Add API to map and unmap DRM buffers through the VSP Laurent Pinchart
2017-05-22 11:52 ` Kieran Bingham
2017-05-16 23:20 ` [PATCH v2 5/5] drm: rcar-du: Map memory through the VSP device Laurent Pinchart
2017-05-22 12:15 ` Kieran Bingham
2017-05-22 12:16 ` Kieran Bingham
2017-05-22 12:24 ` Laurent Pinchart
2017-05-22 12:52 ` Kieran Bingham
2017-05-22 13:00 ` Geert Uytterhoeven
2017-05-22 13:23 ` Laurent Pinchart [this message]
2017-05-22 13:40 ` Kieran Bingham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1878179.RM5CVv0lR3@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert@linux-m68k.org \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.