From: "Rui Miguel Silva" <rmfrfs@gmail.com>
To: "Martin Kepplinger" <martin.kepplinger@puri.sm>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
<linux-media@vger.kernel.org>
Cc: "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 10:19:36 +0100 [thread overview]
Message-ID: <CD4NTXN3E6YR.2T29V4FEH13PB@arch-thunder> (raw)
In-Reply-To: <09087c452885b0da779258b4962a349dbde1aec7.camel@puri.sm>
Hi Martin,
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?
[0]: https://lore.kernel.org/linux-media/CBHA8BLTAJM1.1DIYC729ZMAYY@arch-thunder/
------
Cheers,
Rui
>
> Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
>
> thank you very much
next prev parent reply other threads:[~2021-07-28 9:19 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 [this message]
2021-07-28 13:18 ` Laurent Pinchart
2021-07-28 15:01 ` Rui Miguel Silva
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=CD4NTXN3E6YR.2T29V4FEH13PB@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