From: "Rui Miguel Silva" <rmfrfs@gmail.com>
To: "Laurent Pinchart" <laurent.pinchart@ideasonboard.com>
Cc: "Martin Kepplinger" <martin.kepplinger@puri.sm>,
<linux-media@vger.kernel.org>,
"Steve Longerbeam" <slongerbeam@gmail.com>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"Marek Vasut" <marek.vasut@gmail.com>, <kernel@pengutronix.de>,
<linux-imx@nxp.com>
Subject: Re: [PATCH] media: imx: imx7-media-csi: Fix buffer return upon stream start failure
Date: Wed, 28 Jul 2021 16:01:57 +0100 [thread overview]
Message-ID: <CD4V41XHT0GH.2YVG02SRQNC7@arch-thunder> (raw)
In-Reply-To: <YQFZKtF/JUm0ay+9@pendragon.ideasonboard.com>
On Wed Jul 28, 2021 at 2:18 PM WEST, Laurent Pinchart wrote:
> Hello,
>
> On Wed, Jul 28, 2021 at 10:19:36AM +0100, Rui Miguel Silva wrote:
> > On Wed Jul 28, 2021 at 9:50 AM WEST, Martin Kepplinger wrote:
> > > Am Mittwoch, dem 19.05.2021 um 03:58 +0300 schrieb Laurent Pinchart:
> > > > When the stream fails to start, the first two buffers in the queue
> > > > have
> > > > been moved to the active_vb2_buf array and are returned to vb2 by
> > > > imx7_csi_dma_unsetup_vb2_buf(). The function is called with the
> > > > buffer
> > > > state set to VB2_BUF_STATE_ERROR unconditionally, which is correct
> > > > when
> > > > stopping the stream, but not when the start operation fails. In that
> > > > case, the state should be set to VB2_BUF_STATE_QUEUED. Fix it.
> > > >
> > > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > > ---
> > > > drivers/staging/media/imx/imx7-media-csi.c | 15 +++++++++------
> >
> > <snip>
> >
> > > > + imx7_csi_deinit(csi, VB2_BUF_STATE_ERROR);
> > > > }
> > > >
> > > > csi->is_streaming = !!enable;
> > >
> > >
> > > This patch has not yet been accepted. Any specific reason? I need it.
> >
> > Good question, I gave my reviewed in May [0], maybe got lost in the
> > merge process somewhere. Mauro?
>
> I've just sent a pull request with all the pending i.MX8 patches,
> including Martin's i.MX8MQ CSI-2 receiver driver.
Thanks Laurent.
------
Cheers,
Rui
>
prev parent reply other threads:[~2021-07-28 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-19 0:58 [PATCH] media: imx: imx7-media-csi: Fix buffer return upon stream start failure Laurent Pinchart
2021-05-19 9:37 ` Martin Kepplinger
2021-05-19 14:12 ` Rui Miguel Silva
2021-07-28 8:50 ` Martin Kepplinger
2021-07-28 9:19 ` Rui Miguel Silva
2021-07-28 13:18 ` Laurent Pinchart
2021-07-28 15:01 ` Rui Miguel Silva [this message]
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=CD4V41XHT0GH.2YVG02SRQNC7@arch-thunder \
--to=rmfrfs@gmail.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-imx@nxp.com \
--cc=linux-media@vger.kernel.org \
--cc=marek.vasut@gmail.com \
--cc=martin.kepplinger@puri.sm \
--cc=p.zabel@pengutronix.de \
--cc=slongerbeam@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox