diff options
| author | Laurent Pinchart <[email protected]> | 2021-05-11 23:44:40 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-08-04 12:43:51 +0000 |
| commit | 0ada1697ed4256b38225319c9896661142a3572d (patch) | |
| tree | 3edecb9ccec65b4af4fef45865568415acc97733 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | media: imx: imx7-media-csi: Don't set PIXEL_BIT in CSICR1 (diff) | |
| download | kernel-0ada1697ed4256b38225319c9896661142a3572d.tar.gz kernel-0ada1697ed4256b38225319c9896661142a3572d.zip | |
media: imx: imx7-media-csi: Fix buffer return upon stream start failure
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 <[email protected]>
Tested-by: Martin Kepplinger <[email protected]>
Reviewed-by: Rui Miguel Silva <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
